Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
AE UTBM
Sith
Commits
e8f742b9
Verified
Commit
e8f742b9
authored
May 18, 2019
by
Sli
Browse files
core: remove external resources once for all
parent
a4ed535b
Pipeline
#1762
passed with stage
in 23 minutes and 24 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CONTRIBUTING.md
View file @
e8f742b9
...
...
@@ -31,7 +31,6 @@ Maintenant, faut passer le sith en mode debug dans le fichier de settings person
```
bash
echo
"DEBUG=True"
>
sith/settings_custom.py
echo
'EXTERNAL_RES = "False"'
>>
sith/settings_custom.py
echo
'SITH_URL = "localhost:8000"'
>>
sith/settings_custom.py
```
...
...
core/templates/core/500.jinja
View file @
e8f742b9
{%
extends
"core/base.jinja"
%}
{%
block
head
%}
{{
super
()
}}
{%
if
settings.EXTERNAL_RES
%}
<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
%}
<script
src=
"
{{
static
(
'core/js/sentry/bundle.min.js'
)
}}
"
crossorigin=
"anonymous"
></script>
{%
endblock
head
%}
{%
block
content
%}
...
...
core/templates/core/base.jinja
View file @
e8f742b9
...
...
@@ -10,8 +10,8 @@
<link
rel=
"stylesheet"
href=
"
{{
static
(
'ajax_select/css/ajax_select.css'
)
}}
"
>
<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/font-awesome/css/font-awesome.min.css"
>
<script
href=
"
/core/
static
/
core/font-awesome/js/fontawesone.min.js"
></script>
<link
rel=
"stylesheet"
href=
"
{{
static
(
'
core/font-awesome/css/font-awesome.min.css
'
)
}}
"
>
<script
href=
"
{{
static
(
'
core/font-awesome/js/fontawesone.min.js
'
)
}}
"
></script>
<!-- Jquery declared here to be accessible in every django widgets -->
<script
src=
"
{{
static
(
'core/js/jquery-3.1.0.min.js'
)
}}
"
></script>
...
...
sith/settings.py
View file @
e8f742b9
...
...
@@ -227,9 +227,6 @@ LOCALE_PATHS = (os.path.join(BASE_DIR, "locale"),)
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/"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment