Skip to content

Commit

Permalink
Update urls.py because of new version of Django. (celery#5396)
Browse files Browse the repository at this point in the history
FYI patterns have been removed in Django 1.10.
See release 1.10 notes: https://docs.djangoproject.com/en/2.0/releases/1.10/
  • Loading branch information
ammirsm authored and Omer Katz committed Mar 19, 2019
1 parent cb3da3c commit c0f0f66
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions examples/django/proj/urls.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
from __future__ import absolute_import, unicode_literals

from django.conf.urls import ( # noqa
patterns, include, url, handler404, handler500,
include, url, handler404, handler500,
)

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns(
'',
urlpatterns = [
# Examples:
# url(r'^$', 'proj.views.home', name='home'),
# url(r'^proj/', include('proj.foo.urls')),
Expand All @@ -19,4 +18,4 @@

# Uncomment the next line to enable the admin:
# url(r'^admin/', include(admin.site.urls)),
)
]

0 comments on commit c0f0f66

Please sign in to comment.