Commit 6c957e3c authored by Krophil's avatar Krophil

Integrate external_res variable

parent 578fa149
Pipeline #1367 passed with stage
in 5 minutes and 30 seconds
......@@ -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é.
echo "DEBUG=True" > sith/settings_custom.py
echo 'EXTERNAL_RES = "False"' >> 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
......
......@@ -7,15 +7,18 @@
<link rel="stylesheet" href="{{ static('core/base.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/js/ui/jquery-ui.min.css') }}">
<link rel="stylesheet" href="{{ static('ajax_select/css/ajax_select.css') }}">
<link rel="stylesheet" href="{{ scss('core/style.scss') }}">
{% if settings.DEBUG %}
<link rel="stylesheet" href="{{ static('core/font-awesome/css/font-awesome.min.css') }}">
{% else %}
{% if settings.EXTERNAL_RES %}
<noscript><link rel="stylesheet" href="https://use.fontawesome.com/775817bb35.css"></noscript>
<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 %}
{% endblock %}
</head>
......
......@@ -227,6 +227,9 @@ LOCALE_PATHS = (
PHONENUMBER_DEFAULT_REGION = "FR"
# Whether to use CDNs (True) or local ressources (False) for JS and CSS
EXTERNAL_RES = True
# Medias
MEDIA_ROOT = './data/'
MEDIA_URL = '/data/'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment