From 3e517477b770d4b7f0417dc16862cddd4025629f Mon Sep 17 00:00:00 2001 From: Stefano Brentegani Date: Mon, 28 Jul 2014 07:32:12 +0200 Subject: [PATCH] fix lazy url in settings with Django 1.4 --- quicktest.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/quicktest.py b/quicktest.py index 3d04ace0..834a77ac 100644 --- a/quicktest.py +++ b/quicktest.py @@ -64,6 +64,8 @@ class QuickDjangoTest(object): """ Fire up the Django test suite developed for version 1.2 """ + from django.core.urlresolvers import reverse_lazy + settings.configure( DEBUG=True, DATABASES={ @@ -79,7 +81,7 @@ class QuickDjangoTest(object): INSTALLED_APPS=self.INSTALLED_APPS + self.apps, ROOT_URLCONF=self.apps[0] + '.urls', STATIC_URL='/static/', - LOGIN_URL='login', + LOGIN_URL=reverse_lazy('login'), ) from django.test.simple import DjangoTestSuiteRunner failures = DjangoTestSuiteRunner().run_tests(self.apps, verbosity=1)