mirror of
https://github.com/jazzband/django-admin2.git
synced 2026-03-16 22:20:24 +00:00
Use static template tag instead of STATIC_URL
This commit is contained in:
parent
d69729e52f
commit
25679c7fa3
2 changed files with 9 additions and 8 deletions
|
|
@ -2,10 +2,11 @@
|
|||
|
||||
{% load i18n %}
|
||||
{% load admin2_tags %}
|
||||
{% load staticfiles %}
|
||||
|
||||
{% block css %}
|
||||
{{ block.super }}
|
||||
<link href="{{ STATIC_URL }}themes/bootstrap/css/login.css" rel="stylesheet" media="screen">
|
||||
<link href="{% static "themes/bootstrap/css/login.css" %}" rel="stylesheet" media="screen">
|
||||
{% endblock css %}
|
||||
|
||||
{% block navbar %}{% endblock navbar %}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{% load i18n %}<!DOCTYPE html>
|
||||
{% load i18n %}{% load staticfiles %}<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
|
@ -7,9 +7,9 @@
|
|||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<!-- Bootstrap -->
|
||||
{% block css %}
|
||||
<link href="{{ STATIC_URL }}themes/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
|
||||
<link href="{{ STATIC_URL }}themes/bootstrap/css/bootstrap-custom.css" rel="stylesheet" media="screen">
|
||||
<link href="{{ STATIC_URL }}themes/bootstrap/css/base.css" rel="stylesheet" media="screen">
|
||||
<link href="{% static "themes/bootstrap/css/bootstrap.min.css" %}" rel="stylesheet" media="screen">
|
||||
<link href="{% static "themes/bootstrap/css/bootstrap-custom.css" %}" rel="stylesheet" media="screen">
|
||||
<link href="{% static "themes/bootstrap/css/base.css" %}" rel="stylesheet" media="screen">
|
||||
{% endblock css %}
|
||||
</head>
|
||||
<body>
|
||||
|
|
@ -78,9 +78,9 @@
|
|||
|
||||
{% block javascript %}
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
|
||||
<script>window.jQuery || document.write('<script src="{{ STATIC_URL }}themes/bootstrap/js/jquery.min.js">\x3C/script>')</script>
|
||||
<script src="{{ STATIC_URL }}themes/bootstrap/js/bootstrap.min.js"></script>
|
||||
<script src="{{ STATIC_URL }}themes/bootstrap/js/base.js"></script>
|
||||
<script>window.jQuery || document.write('<script src="{% static "themes/bootstrap/js/jquery.min.js" %}">\x3C/script>')</script>
|
||||
<script src="{% static "themes/bootstrap/js/bootstrap.min.js" %}"></script>
|
||||
<script src="{% static "themes/bootstrap/js/base.js" %}"></script>
|
||||
{% endblock javascript %}
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Reference in a new issue