- Timestamp:
- Jul 12, 2011, 10:34:12 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/django_gheat/settings.py
r9376 r9385 4 4 PROJECT_HOME = os.path.abspath(os.path.dirname(__file__)) 5 5 6 OSM_CACHE_DIR = '/var/osm-cache' 7 if not os.path.exists(OSM_CACHE_DIR): 8 OSM_CACHE_DIR = '/tmp/osm-cache' 9 10 OSM_CACHE = 'osm_cache' 11 12 13 14 DEBUG = os.path.exists(PROJECT_HOME + '/debug-active') 6 DEBUG = os.path.exists(PROJECT_HOME + '/enable-debug') 15 7 TEMPLATE_DEBUG = DEBUG 16 17 if DEBUG and not os.path.exists(OSM_CACHE_DIR):18 os.mkdir(OSM_CACHE_DIR)19 8 20 9 # Required for Etags Caching Implementation … … 40 29 CACHES = { 41 30 'default': { 42 'BACKEND': 'django.core.cache.backends.locmem.LocMemCache', 43 'LOCATION': 'unique-snowflake' 44 }, 45 OSM_CACHE: { 46 'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache', 47 'LOCATION': OSM_CACHE_DIR, 31 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', 32 'LOCATION': '127.0.0.1:11211', 48 33 'TIMEOUT': 3600 * 24 * 7, 49 34 'OPTIONS': { 50 35 'MAX_ENTRIES': 100000 51 36 } 52 } 37 }, 53 38 } 54 39
Note:
See TracChangeset
for help on using the changeset viewer.