-
Notifications
You must be signed in to change notification settings - Fork 563
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #542 from benjaoming/dj19-static
Use {% static %} instead of deprecated STATIC_URL
- Loading branch information
Showing
10 changed files
with
33 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
{% load sekizai_tags %} | ||
{% load sekizai_tags static %} | ||
{% addtoblock "js" %} | ||
<script type="text/javascript" src="{{ STATIC_URL }}wiki/js/editor.js"></script> | ||
<script type="text/javascript" src="{% static "wiki/js/editor.js" %}"></script> | ||
{% for js in editor.Media.js %} | ||
<script type="text/javascript" src="{{ STATIC_URL }}{{ js }}"></script> | ||
<script type="text/javascript" src="{% static js %}"></script> | ||
{% endfor %} | ||
{% endaddtoblock %} | ||
|
||
{% addtoblock "css" %} | ||
{% for media, srcs in editor.Media.css.items %} | ||
{% for src in srcs %} | ||
<link rel="stylesheet" media="{{ media }}" href="{{ STATIC_URL }}{{ src }}" /> | ||
<link rel="stylesheet" media="{{ media }}" href="{% static src %}" /> | ||
{% endfor %} | ||
{% endfor %} | ||
{% endaddtoblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters