Skip to content

Commit b24b04e

Browse files
author
joe
committed
Django 1.10 compatibility
1 parent cb0afe3 commit b24b04e

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

dajaxice/templates/dajaxice/dajaxice.core.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{% load url from future %}
21
var Dajaxice = {
32

43
{% with module=dajaxice_config.modules top='top' %}

dajaxice/urls.py

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
try:
2-
from django.conf.urls import patterns, url
3-
except ImportError:
4-
from django.conf.urls.defaults import patterns, url
1+
from django.conf.urls import url
52

63
from .views import DajaxiceRequest
74

8-
urlpatterns = patterns('dajaxice.views',
5+
urlpatterns = [
96
url(r'^(.+)/$', DajaxiceRequest.as_view(), name='dajaxice-call-endpoint'),
107
url(r'', DajaxiceRequest.as_view(), name='dajaxice-endpoint'),
11-
)
8+
]

0 commit comments

Comments
 (0)