aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 cfd9d3e..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.defaults 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