We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2a1066b + af0d7dc commit 61736abCopy full SHA for 61736ab
examples/chatserver/urls.py
@@ -3,7 +3,7 @@
3
if DJANGO_VERSION < (1, 10):
4
from django.conf.urls import url, patterns, include
5
from django.core.urlresolvers import reverse_lazy
6
-elif DJANGO_VERSION < (2,):
+elif DJANGO_VERSION < (2, 0):
7
from django.conf.urls import url, include
8
from django.urls import reverse_lazy
9
else:
@@ -25,7 +25,7 @@
25
url(r'^admin/', include(admin.site.urls)),
26
url(r'^$', RedirectView.as_view(url=reverse_lazy('broadcast_chat'))),
27
) + staticfiles_urlpatterns()
28
-elif DJANGO_VERSION < 2:
29
urlpatterns = [
30
url(r'^chat/$', BroadcastChatView.as_view(), name='broadcast_chat'),
31
url(r'^userchat/$', UserChatView.as_view(), name='user_chat'),
0 commit comments