mirror of
https://github.com/jazzband/django-authority.git
synced 2026-03-16 22:20:28 +00:00
Fix import for Django 1.6 in example
This commit is contained in:
parent
75cbeaa326
commit
95cf006737
1 changed files with 4 additions and 2 deletions
|
|
@ -1,5 +1,7 @@
|
|||
|
||||
from django.conf.urls.defaults import patterns, include, handler500, url
|
||||
try:
|
||||
from django.conf.urls import patterns, include, handler500, url
|
||||
except ImportError: # django < 1.4
|
||||
from django.conf.urls.defaults import patterns, include, handler500, url
|
||||
from django.conf import settings
|
||||
from django.contrib import admin
|
||||
import authority
|
||||
|
|
|
|||
Loading…
Reference in a new issue