aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPēteris Caune <cuu508@gmail.com>2014-01-07 11:41:15 +0200
committerPēteris Caune <cuu508@gmail.com>2014-01-07 11:41:15 +0200
commit91f2d2a511e106313f301c9625945284c0a1e525 (patch)
treed207ea478bd438f23a1861af27c9c647ef5e5a9c
parent915511930945a7376171d39d3a740632940446f7 (diff)
downloadezfacebook-91f2d2a511e106313f301c9625945284c0a1e525.zip
ezfacebook-91f2d2a511e106313f301c9625945284c0a1e525.tar.gz
Now also works with older versions of Django
-rw-r--r--ezfacebook/context/urls.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/ezfacebook/context/urls.py b/ezfacebook/context/urls.py
index c4b73ef..1374764 100644
--- a/ezfacebook/context/urls.py
+++ b/ezfacebook/context/urls.py
@@ -6,7 +6,12 @@ facebook-channel-url: URL to "channel.html" i.e. //mysitedomain.com/facebookchan
"""
-from django.conf.urls import patterns, url
+try:
+ from django.conf.urls.defaults import patterns, url
+except ImportError:
+ # Django 1.6 removes the defaults module.
+ # See https://docs.djangoproject.com/en/1.6/internals/deprecation/#id1
+ from django.conf.urls import patterns, url
from . import views