- Timestamp:
- Dec 3, 2011, 11:11:32 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/django_gheat/settings.py
r9653 r9748 4 4 PROJECT_HOME = os.path.abspath(os.path.dirname(__file__)) 5 5 6 # This variables get re-used in definitions so make sure to override them upfront 6 7 DJANGO_PREFIX = '/d' 8 OSM_PROXY_DIR = PROJECT_HOME + '/cache/osm_proxy' 9 7 10 if os.path.isfile(PROJECT_HOME + '/local_settings.py'): 8 try: 9 import local_settings 10 DJANGO_PREFIX = local_settings.DJANGO_PREFIX 11 except (AttributeError,NameError): 12 pass 11 from local_settings import * 13 12 14 13 DJANGO_BALANCERS = OSM_PROXY_BALANCERS = ['a','b','c','d','e','f'] … … 54 53 'osm_proxy': { 55 54 'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache', 56 'LOCATION': '/usr/local/var/django/cache/osm_proxy',55 'LOCATION': OSM_PROXY_DIR, 57 56 'TIMEOUT': 3600 * 24 * 7, 58 57 'OPTIONS': {
Note:
See TracChangeset
for help on using the changeset viewer.