1. Mikhail Korobov
  2. django-webtest


Mikhail Korobov  committed 794e3fa

fix DeprecationWarnings in tests

  • Participants
  • Parent commits 41a6c25
  • Branches default

Comments (0)

Files changed (2)

File django_webtest_tests/settings.py

View file
  • Ignore whitespace
 # Examples: "http://media.lawrence.com", "http://example.com/media/"
 MEDIA_URL = '/media/'
-# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
-# trailing slash.
-# Examples: "http://foo.com/media/", "/media/".
-ADMIN_MEDIA_PREFIX = '/static/admin/'
 STATIC_URL = '/static/'
 # Make this unique, and don't share it with anybody.

File django_webtest_tests/urls.py

View file
  • Ignore whitespace
-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