Summary: Enable support for a custom settings file for the test crawl
- and add a simple settings file that enables caching to speed up the
crawl (shaves ~35% off most pages AFAICT)
- Legacy-Id: 8984
Note: SVN reference [8970] has been migrated to Git commit 8d4e1a8528
23 lines
602 B
Python
23 lines
602 B
Python
# Standard settings except we enable caching like in the production
|
|
# environment, this is useful for speeding up the test crawl, try for
|
|
# instance:
|
|
#
|
|
# bin/test-crawl --settings=ietf.settings_testcrawl
|
|
#
|
|
|
|
from settings import * # pyflakes:ignore
|
|
|
|
TEMPLATE_LOADERS = (
|
|
('django.template.loaders.cached.Loader', (
|
|
'django.template.loaders.filesystem.Loader',
|
|
'django.template.loaders.app_directories.Loader',
|
|
)),
|
|
'ietf.dbtemplate.template.Loader',
|
|
)
|
|
|
|
CACHES = {
|
|
'default': {
|
|
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
|
|
}
|
|
}
|