mirror of
https://github.com/ae-utbm/sith.git
synced 2024-10-31 19:38:04 +00:00
Integrate external_res variable
This commit is contained in:
parent
578fa1495d
commit
6c957e3ce4
@ -25,6 +25,7 @@ Avec cette commande, tu clones le sith AE dans le dossier courant.
|
|||||||
Maintenant, faut passer le sith en mode debug dans le fichier de settings personnalisé.
|
Maintenant, faut passer le sith en mode debug dans le fichier de settings personnalisé.
|
||||||
|
|
||||||
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
|
||||||
|
|
||||||
Enfin, il s'agit de créer la base de donnée de test lors de la première utilisation
|
Enfin, il s'agit de créer la base de donnée de test lors de la première utilisation
|
||||||
|
@ -7,15 +7,18 @@
|
|||||||
<link rel="stylesheet" href="{{ static('core/base.css') }}">
|
<link rel="stylesheet" href="{{ static('core/base.css') }}">
|
||||||
<link rel="stylesheet" href="{{ static('core/multiple-select.css') }}">
|
<link rel="stylesheet" href="{{ static('core/multiple-select.css') }}">
|
||||||
<link rel="stylesheet" href="{{ static('core/jquery.datetimepicker.min.css') }}">
|
<link rel="stylesheet" href="{{ static('core/jquery.datetimepicker.min.css') }}">
|
||||||
<link rel="stylesheet" href="{{ static('core/js/ui/jquery-ui.min.css') }}">
|
|
||||||
<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') }}">
|
||||||
{% if settings.DEBUG %}
|
{% if settings.EXTERNAL_RES %}
|
||||||
<link rel="stylesheet" href="{{ static('core/font-awesome/css/font-awesome.min.css') }}">
|
|
||||||
{% else %}
|
|
||||||
<noscript><link rel="stylesheet" href="https://use.fontawesome.com/775817bb35.css"></noscript>
|
<noscript><link rel="stylesheet" href="https://use.fontawesome.com/775817bb35.css"></noscript>
|
||||||
<script src="https://use.fontawesome.com/c06c9c6980.js"></script>
|
<script src="https://use.fontawesome.com/c06c9c6980.js"></script>
|
||||||
|
|
||||||
|
<noscript><link rel="stylesheet" type="text/css" href="static('core/js/ui/jquery-ui.min.css')"></noscript>
|
||||||
|
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js"></script>
|
||||||
|
|
||||||
|
{% else %}
|
||||||
|
<link rel="stylesheet" href="{{ static('core/font-awesome/css/font-awesome.min.css') }}">
|
||||||
|
<link rel="stylesheet" href="{{ static('core/js/ui/jquery-ui.min.css') }}">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</head>
|
</head>
|
||||||
|
@ -227,6 +227,9 @@ LOCALE_PATHS = (
|
|||||||
|
|
||||||
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