Actually use STATIC_URL in a way that will work with compress

This commit is contained in:
Danielle McLean 2017-10-23 15:56:13 +11:00
parent 3b5713361a
commit 888e01cb43
Signed by untrusted user: 00dani
GPG key ID: 5A5D2D1AFF12EEC5
2 changed files with 3 additions and 1 deletions

View file

@ -1,3 +1,5 @@
from .base import *
ALLOWED_HOSTS = ['*']
STATIC_URL = 'https://static.00dani.dev/'
MEDIA_URL = STATIC_URL + 'media/'

View file

@ -8,7 +8,7 @@
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css"
integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb" crossorigin="anonymous" />
{% compress css %}
<link rel="stylesheet" type="text/stylus" href="/static/lemoncurry/css/layout.styl" />
<link rel="stylesheet" type="text/stylus" href="{% static 'lemoncurry/css/layout.styl' %}" />
{% endcompress %}
<script type="text/javascript" src="https://use.fontawesome.com/4fbab4ae27.js"></script>
</head>