Mikhail Korobov committed 794e3fa

fix DeprecationWarnings in tests

Comments (0)

Files changed (2)


 # Examples: "", ""
 MEDIA_URL = '/media/'
-# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
-# trailing slash.
-# Examples: "", "/media/".
-ADMIN_MEDIA_PREFIX = '/static/admin/'
 STATIC_URL = '/static/'
 # Make this unique, and don't share it with anybody.


-from django.conf.urls.defaults import *
+# prevent DeprecationWarning for more recent django versions
+    from django.conf.urls import patterns, url
+except ImportError:
+    from django.conf.urls.defaults import patterns, url, handler404, handler500
 from django.http import HttpResponse
 from django.shortcuts import render_to_response
 from django.template import RequestContext