Skip to content

Commit

Permalink
fix sqlite django22
Browse files Browse the repository at this point in the history
  • Loading branch information
Gagaro committed Oct 15, 2019
1 parent 7991db2 commit 64bc087
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions quicktest.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class QuickDjangoTest(object):
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.admin',
'django.contrib.messages',
]

if django.VERSION >= (1, 8, 0):
Expand All @@ -34,6 +35,7 @@ class QuickDjangoTest(object):
'OPTIONS': {
'context_processors': [
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
]
},
'APP_DIRS': True,
Expand Down Expand Up @@ -70,6 +72,11 @@ def run_tests(self):
'DATABASES': databases,
'INSTALLED_APPS': self.INSTALLED_APPS + self.apps,
'STATIC_URL': '/static/',
'MIDDLEWARE': [
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
]
}
if 'SPATIALITE_LIBRARY_PATH' in os.environ:
# If you get SpatiaLite-related errors, refer to this document
Expand Down

0 comments on commit 64bc087

Please sign in to comment.