Changeset 9748 for src


Ignore:
Timestamp:
Dec 3, 2011, 11:11:32 AM (13 years ago)
Author:
rick
Message:

OSM_PROXY_DIR can also be overwritten (if used).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/django_gheat/settings.py

    r9653 r9748  
    44PROJECT_HOME = os.path.abspath(os.path.dirname(__file__))
    55
     6# This variables get re-used in definitions so make sure to override them upfront
    67DJANGO_PREFIX = '/d'
     8OSM_PROXY_DIR = PROJECT_HOME + '/cache/osm_proxy'
     9
    710if 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 *
    1312
    1413DJANGO_BALANCERS = OSM_PROXY_BALANCERS = ['a','b','c','d','e','f']
     
    5453    'osm_proxy': {
    5554        'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
    56         'LOCATION': '/usr/local/var/django/cache/osm_proxy',
     55        'LOCATION': OSM_PROXY_DIR,
    5756        'TIMEOUT': 3600 * 24 * 7,
    5857        'OPTIONS': {
Note: See TracChangeset for help on using the changeset viewer.