mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 06:03:20 +00:00
core: remove external resources once for all
This commit is contained in:
parent
a4ed535b34
commit
e8f742b9f9
@ -31,7 +31,6 @@ Maintenant, faut passer le sith en mode debug dans le fichier de settings person
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
echo "DEBUG=True" > sith/settings_custom.py
|
echo "DEBUG=True" > sith/settings_custom.py
|
||||||
echo 'EXTERNAL_RES = "False"' >> sith/settings_custom.py
|
|
||||||
echo 'SITH_URL = "localhost:8000"' >> sith/settings_custom.py
|
echo 'SITH_URL = "localhost:8000"' >> sith/settings_custom.py
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -1,11 +1,7 @@
|
|||||||
{% extends "core/base.jinja" %}
|
{% extends "core/base.jinja" %}
|
||||||
{% block head %}
|
{% block head %}
|
||||||
{{ super() }}
|
{{ super() }}
|
||||||
{% if settings.EXTERNAL_RES %}
|
<script src="{{ static('core/js/sentry/bundle.min.js') }}" crossorigin="anonymous"></script>
|
||||||
<script src="https://browser.sentry-cdn.com/4.0.6/bundle.min.js" crossorigin="anonymous"></script>
|
|
||||||
{% else %}
|
|
||||||
<script src="{{ static('core/js/sentry/bundle.min.js') }}" crossorigin="anonymous"></script>
|
|
||||||
{% endif %}
|
|
||||||
{% endblock head %}
|
{% endblock head %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
<link rel="stylesheet" href="{{ static('ajax_select/css/ajax_select.css') }}">
|
<link rel="stylesheet" href="{{ static('ajax_select/css/ajax_select.css') }}">
|
||||||
<link rel="stylesheet" href="{{ scss('core/style.scss') }}">
|
<link rel="stylesheet" href="{{ scss('core/style.scss') }}">
|
||||||
<link rel="stylesheet" href="{{ static('core/js/ui/jquery-ui.min.css') }}">
|
<link rel="stylesheet" href="{{ static('core/js/ui/jquery-ui.min.css') }}">
|
||||||
<link rel="stylesheet" href="/static/core/font-awesome/css/font-awesome.min.css">
|
<link rel="stylesheet" href="{{ static('core/font-awesome/css/font-awesome.min.css') }}">
|
||||||
<script href="/core/static/core/font-awesome/js/fontawesone.min.js"></script>
|
<script href="{{ static('core/font-awesome/js/fontawesone.min.js') }}"></script>
|
||||||
|
|
||||||
<!-- Jquery declared here to be accessible in every django widgets -->
|
<!-- Jquery declared here to be accessible in every django widgets -->
|
||||||
<script src="{{ static('core/js/jquery-3.1.0.min.js') }}"></script>
|
<script src="{{ static('core/js/jquery-3.1.0.min.js') }}"></script>
|
||||||
|
@ -227,9 +227,6 @@ LOCALE_PATHS = (os.path.join(BASE_DIR, "locale"),)
|
|||||||
|
|
||||||
PHONENUMBER_DEFAULT_REGION = "FR"
|
PHONENUMBER_DEFAULT_REGION = "FR"
|
||||||
|
|
||||||
# Whether to use CDNs (True) or local ressources (False) for JS and CSS
|
|
||||||
EXTERNAL_RES = True
|
|
||||||
|
|
||||||
# Medias
|
# Medias
|
||||||
MEDIA_ROOT = "./data/"
|
MEDIA_ROOT = "./data/"
|
||||||
MEDIA_URL = "/data/"
|
MEDIA_URL = "/data/"
|
||||||
|
Loading…
Reference in New Issue
Block a user