Skip to content

Commit b0d2a51

Browse files
committed
Django 1.5 support
1 parent 345dc44 commit b0d2a51

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

django_socketio/example_project/chat/templates/rooms.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{% extends "base.html" %}
22

3+
{% load url from future %}
4+
35
{% block extra_js %}
46
<script>$(showForm);</script>
57
{% endblock %}
@@ -21,7 +23,7 @@ <h1><a href="{{ room.get_absolute_url }}">{{ room }}</a></h1>
2123
{% endblock %}
2224

2325
{% block form %}
24-
<form method="post" action="{% url create %}">
26+
<form method="post" action="{% url "create" %}">
2527
<input type="text" id="name" name="name">
2628
<input type="submit" id="submit" value="Add Room">
2729
{% csrf_token %}

django_socketio/example_project/urls.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11

22
from django.conf import settings
3-
from django.conf.urls.defaults import patterns, include, url
3+
from django.conf.urls import patterns, include, url
44

55
from django.contrib import admin
6+
7+
68
admin.autodiscover()
79

810
urlpatterns = patterns('',

django_socketio/urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
from django.conf.urls.defaults import patterns, url
2+
from django.conf.urls import patterns, url
33
from django.conf import settings
44
from django.utils.importlib import import_module
55

0 commit comments

Comments
 (0)