Skip to content
This repository was archived by the owner on Apr 15, 2025. It is now read-only.

Commit a1ec913

Browse files
committed
update urls.py to support versions of django older than 1.4
1 parent 9b3e633 commit a1ec913

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dj_elastictranscoder/urls.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
from django.conf.urls import url, patterns
1+
try:
2+
from django.conf.urls import url, patterns
3+
except ImportError:
4+
from django.conf.urls.defaults import url, patterns # Support for Django < 1.4
25

36
urlpatterns = patterns('dj_elastictranscoder.views',
47
url(r'^endpoint/$', 'endpoint'),

0 commit comments

Comments
 (0)