Commits

Anonymous committed 86e3496

Fixing test runner

Comments (0)

Files changed (1)

threaded_multihost/test_app/settings.py

 # Django settings for mytest project.
 
+import sys
 from os.path import normpath, join, dirname
 #ROOT : the django project root
 ROOT = lambda *base : normpath(join(dirname(__file__), *base)).replace('\\','/')
+sys.path.append(ROOT(dirname(dirname(dirname(__file__)))))
 
 DEBUG = True
 TEMPLATE_DEBUG = DEBUG
 )
 
 MIDDLEWARE_CLASSES = (
+    'django.contrib.sessions.middleware.SessionMiddleware',
     'django.middleware.common.CommonMiddleware',
-    'django.contrib.sessions.middleware.SessionMiddleware',
     'django.contrib.auth.middleware.AuthenticationMiddleware',
+    'django.contrib.messages.middleware.MessageMiddleware',
     'threaded_multihost.middleware.ThreadLocalMiddleware',
 )