Commits

Venelin Stoykov  committed 77cfa30

Support for Django > 1.4 for test proj

  • Participants
  • Parent commits 3748051

Comments (0)

Files changed (1)

File test_proj/urls.py

-from django.conf.urls.defaults import *
+try:
+    from django.conf.urls import patterns, url, include
+except ImportError: # django < 1.4
+    from django.conf.urls.defaults import patterns, url, include
 from django.conf import settings
 from django.contrib import admin