fix urls.py for django 1.3 compatibility

This commit is contained in:
Darrell Enns 2013-03-18 11:58:07 -07:00
parent 8f0a80d322
commit a4b3185525

View File

@ -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 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 django.contrib.auth.decorators import login_required
from helpdesk import settings as helpdesk_settings from helpdesk import settings as helpdesk_settings