Commits

Kelvin Wong committed 5110638

Remove unpleasant surprise for users without Django

Comments (0)

Files changed (1)

         pass
 
     def run(self):
-        from django.conf import settings
-        settings.configure(
-            USE_I18N=True
-        )
         try:
             from django.utils.unittest import TextTestRunner, defaultTestLoader
+            from django.conf import settings
+            settings.configure(
+                USE_I18N=True
+            )
         except ImportError:
-            print("Please install django to run the test suite")
+            print("Please install Django => 1.4 to run the test suite")
             exit(-1)
         from tests import test_django_scrypt
         suite = defaultTestLoader.loadTestsFromModule(test_django_scrypt)