mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2024-12-13 02:10:49 +01:00
fix urls.py for django 1.3 compatibility
This commit is contained in:
parent
8f0a80d322
commit
a4b3185525
@ -8,7 +8,11 @@ urls.py - Mapping of URL's to our various views. Note we always used NAMED
|
||||
"""
|
||||
|
||||
from django.conf import settings
|
||||
from django.conf.urls import *
|
||||
import django
|
||||
if django.get_version().startswith("1.3"):
|
||||
from django.conf.urls.defaults import *
|
||||
else:
|
||||
from django.conf.urls import *
|
||||
from django.contrib.auth.decorators import login_required
|
||||
|
||||
from helpdesk import settings as helpdesk_settings
|
||||
|
Loading…
Reference in New Issue
Block a user