Skip to content

Commit

Permalink
Compatibility for Django 1.5 urls
Browse files Browse the repository at this point in the history
  • Loading branch information
dcramer committed Feb 8, 2013
1 parent 3f44ae0 commit 3f38f7c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/contrib/django/urls.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
from __future__ import absolute_import

from django.conf import settings
from django.conf.urls.defaults import *
try:
from django.conf.urls import *
except ImportError:
# for Django version less then 1.4
from django.conf.urls.defaults import * # NOQA

from django.http import HttpResponse


def handler500(request):
if getattr(settings, 'BREAK_THAT_500', False):
raise ValueError('handler500')
Expand Down

0 comments on commit 3f38f7c

Please sign in to comment.