From ba1cfe446b2a339e08d9e8cb117965a386184a31 Mon Sep 17 00:00:00 2001 From: Daniel Kaufhold Date: Tue, 20 Jan 2015 20:04:37 +0100 Subject: [PATCH] Fixed test urls --- booking/tests/urls.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/booking/tests/urls.py b/booking/tests/urls.py index 460c535..dc04fac 100644 --- a/booking/tests/urls.py +++ b/booking/tests/urls.py @@ -1,5 +1,8 @@ """URLs to run the tests.""" -from django.conf.urls.defaults import patterns, include, url +try: + from django.conf.urls import patterns, include, url +except ImportError: # Pre-Django 1.4 version + from django.conf.urls.defaults import patterns, include, url from django.contrib import admin