Skip to content

fix django deprecation warning for patterns #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions djangojs/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from os.path import join, isdir

from django.conf.urls import patterns, url
from django.conf.urls import url

from djangojs.conf import settings
from djangojs.views import UrlsJsonView, ContextJsonView, JsInitView, cached_javascript_catalog
Expand All @@ -29,9 +29,9 @@ def js_info_dict():
return js_info_dict


urlpatterns = patterns('',
urlpatterns = [
url(r'^init\.js$', JsInitView.as_view(), name='django_js_init'),
url(r'^urls$', UrlsJsonView.as_view(), name='django_js_urls'),
url(r'^context$', ContextJsonView.as_view(), name='django_js_context'),
url(r'^translation$', cached_javascript_catalog, js_info_dict(), name='js_catalog'),
)
]