Changeset 9189 for src/django_gheat/settings.py
- Timestamp:
- May 12, 2011, 1:55:27 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/django_gheat/settings.py
r9188 r9189 2 2 3 3 import os 4 PROJECT_HOME = os.path.dirname(__file__) 4 PROJECT_HOME = os.path.abspath(os.path.dirname(__file__)) 5 OSM_CACHE_DIR = '/tmp/osm-cache' 6 OSM_CACHE = 'osm_cache' 7 8 5 9 6 10 DEBUG = True 7 11 TEMPLATE_DEBUG = DEBUG 12 13 if DEBUG and not os.path.exists(OSM_CACHE_DIR): 14 os.mkdir(OSM_CACHE_DIR) 8 15 9 16 # Required for Etags Caching Implementation … … 31 38 'BACKEND': 'django.core.cache.backends.locmem.LocMemCache', 32 39 'LOCATION': 'unique-snowflake' 40 }, 41 OSM_CACHE: { 42 'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache', 43 'LOCATION': OSM_CACHE_DIR, 44 'TIMEOUT': 3600 * 24 * 7, 45 'OPTIONS': { 46 'MAX_ENTRIES': 100000 47 } 33 48 } 34 49 }
Note:
See TracChangeset
for help on using the changeset viewer.