|
183 | 183 | # Using DatabaseCache to make sure that the cache is cleared between tests.
|
184 | 184 | # This prevents false-positives in some wagtail core tests where we are
|
185 | 185 | # changing the 'wagtail_root_paths' key which may cause future tests to fail.
|
186 |
| -# CACHES = { |
187 |
| -# "default": { |
188 |
| -# "BACKEND": "django.core.cache.backends.db.DatabaseCache", |
189 |
| -# "LOCATION": "cache", |
190 |
| -# } |
191 |
| -# } |
| 186 | +CACHES = { |
| 187 | + "default": { |
| 188 | + "BACKEND": "django_mongodb_backend.cache.MongoDBCache", |
| 189 | + "LOCATION": "cache", |
| 190 | + } |
| 191 | +} |
192 | 192 |
|
193 | 193 | PASSWORD_HASHERS = (
|
194 | 194 | "django.contrib.auth.hashers.MD5PasswordHasher", # don't use the intentionally slow default password hasher
|
|
286 | 286 | MONGODB_URI = os.environ.get("MONGODB_URI", "mongodb://localhost:27017/wagtail")
|
287 | 287 | DATABASES["default"] = django_mongodb_backend.parse_uri(MONGODB_URI)
|
288 | 288 |
|
289 |
| -# MIGRATION_MODULES = { |
290 |
| -# "admin": "wagtail.test.mongo_migrations.admin", |
291 |
| -# "auth": "wagtail.test.mongo_migrations.auth", |
292 |
| -# "contenttypes": "wagtail.test.mongo_migrations.contenttypes", |
293 |
| -# "demosite": "wagtail.test.mongo_migrations.demosite", |
294 |
| -# "earlypage": "wagtail.test.mongo_migrations.earlypage", |
295 |
| -# "i18n": "wagtail.test.mongo_migrations.i18n", |
296 |
| -# "routablepagetests": "wagtail.test.mongo_migrations.routablepagetests", |
297 |
| -# "taggit": "wagtail.test.mongo_migrations.taggit", |
298 |
| -# "tests": "wagtail.test.mongo_migrations.tests", |
299 |
| -# "wagtaildocs": "wagtail.test.mongo_migrations.wagtaildocs", |
300 |
| -# "wagtailredirects": "wagtail.test.mongo_migrations.wagtailredirects", |
301 |
| -# "wagtailimages": "wagtail.test.mongo_migrations.wagtailimages", |
302 |
| -# "wagtailsearch": "wagtail.test.mongo_migrations.wagtailsearch", |
303 |
| -# "wagtailsearchpromotions": "wagtail.test.mongo_migrations.wagtailsearchpromotions", |
304 |
| -# "wagtailadmin": "wagtail.test.mongo_migrations.wagtailadmin", |
305 |
| -# "wagtailcore": "wagtail.test.mongo_migrations.wagtailcore", |
306 |
| -# "wagtailforms": "wagtail.test.mongo_migrations.wagtailforms", |
307 |
| -# "wagtailembeds": "wagtail.test.mongo_migrations.wagtailembeds", |
308 |
| -# "wagtailusers": "wagtail.test.mongo_migrations.wagtailusers", |
309 |
| -# } |
310 | 289 | MIGRATION_MODULES = {
|
311 | 290 | "admin": None,
|
312 | 291 | "auth": None,
|
|
0 commit comments