File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ class QuickDjangoTest(object):
26
26
'django.contrib.contenttypes' ,
27
27
'django.contrib.sessions' ,
28
28
'django.contrib.admin' ,
29
+ 'django.contrib.messages' ,
29
30
]
30
31
31
32
if django .VERSION >= (1 , 8 , 0 ):
@@ -34,6 +35,7 @@ class QuickDjangoTest(object):
34
35
'OPTIONS' : {
35
36
'context_processors' : [
36
37
'django.contrib.auth.context_processors.auth' ,
38
+ 'django.contrib.messages.context_processors.messages' ,
37
39
]
38
40
},
39
41
'APP_DIRS' : True ,
@@ -70,6 +72,11 @@ def run_tests(self):
70
72
'DATABASES' : databases ,
71
73
'INSTALLED_APPS' : self .INSTALLED_APPS + self .apps ,
72
74
'STATIC_URL' : '/static/' ,
75
+ 'MIDDLEWARE' : [
76
+ 'django.contrib.auth.middleware.AuthenticationMiddleware' ,
77
+ 'django.contrib.messages.middleware.MessageMiddleware' ,
78
+ 'django.contrib.sessions.middleware.SessionMiddleware' ,
79
+ ]
73
80
}
74
81
if 'SPATIALITE_LIBRARY_PATH' in os .environ :
75
82
# If you get SpatiaLite-related errors, refer to this document
You can’t perform that action at this time.
0 commit comments