Skip to content

Commit edc56cb

Browse files
committed
Merge pull request stephenmcd#83 from gmixo/patch-2
use static template tag instead of STATIC_URL
2 parents cacc4fc + b2b3a10 commit edc56cb

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

django_socketio/example_project/chat/templates/base.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1+
{% load static %}
2+
13
<!doctype html>
24
<html lang="en">
35
<head>
46

57
<meta charset="utf-8">
68
<title>{% block title %}Chat{% endblock %}</title>
7-
<link rel="stylesheet" href="{{ STATIC_URL }}css/chat.css">
9+
<link rel="stylesheet" href="{% static 'css/chat.css' %}">
810
{% block extra_css %}{% endblock %}
911
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
1012
<script>

django_socketio/templates/socketio_scripts.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<script src="{{ STATIC_URL|default:MEDIA_URL }}js/socket.io.js"></script>
1+
{% load static %}
2+
3+
<script src="{% static 'js/socket.io.js' %}"></script>
24
<script>
35

46
(function() {

0 commit comments

Comments
 (0)