We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5a5659 commit 3d35c4fCopy full SHA for 3d35c4f
1 file changed
ietf/settings_sqlitetest.py
@@ -6,6 +6,23 @@
6
7
from settings import * # pyflakes:ignore
8
9
+# Workaround to avoid spending minutes stepping through the migrations in
10
+# every test run. The result of this is to use the 'syncdb' way of creating
11
+# the test database instead of doing it through the migrations. Taken from
12
+# https://gist.github.com/NotSqrt/5f3c76cd15e40ef62d09
13
+
14
+## To be removed after upgrade to Django 1.8 ##
15
16
+class DisableMigrations(object):
17
18
+ def __contains__(self, item):
19
+ return True
20
21
+ def __getitem__(self, item):
22
+ return None
23
24
+MIGRATION_MODULES = DisableMigrations()
25
26
DATABASES = {
27
'default': {
28
'NAME': 'test.db',
0 commit comments