Ignore:
Timestamp:
Jul 7, 2011, 7:23:54 AM (13 years ago)
Author:
rick
Message:

Starting to make production ready:

  • Remove all static / references.
  • Added multihost osm-proxy capacities.
  • Got the osm-proxy code to a more usefull location.
  • Added caching.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/django_gheat/settings.py

    r9236 r9358  
    2828        'NAME': 'project_heatmap',
    2929        'USER': 'root',
    30         'PASSWORD': 'password',
     30        'PASSWORD': '',
    3131        'HOST': 'localhost',
    3232        'PORT': '3306',
     
    8585# in apps' "static/" subdirectories and in STATICFILES_DIRS.
    8686# Example: "/home/media/media.lawrence.com/static/"
    87 STATIC_ROOT = ''
     87STATIC_ROOT = 'sitestatic'
    8888
    8989# URL prefix for static files.
     
    9898# Additional locations of static files
    9999STATICFILES_DIRS = (
    100     PROJECT_HOME + '/static',
     100    # PROJECT_HOME + '/static',
    101101    # Put strings here, like "/home/html/static" or "C:/www/django/static".
    102102    # Always use forward slashes, even on Windows.
     
    124124MIDDLEWARE_CLASSES = (
    125125    'django.middleware.cache.UpdateCacheMiddleware',
    126 #    'django.middleware.common.CommonMiddleware',
    127 #    'django.middleware.cache.FetchFromCacheMiddleware',
    128 #    'django.middleware.http.ConditionalGetMiddleware',
     126    'django.middleware.common.CommonMiddleware',
     127    'django.middleware.cache.FetchFromCacheMiddleware',
     128    'django.middleware.http.ConditionalGetMiddleware',
    129129    'django.contrib.sessions.middleware.SessionMiddleware',
    130130    'django.contrib.auth.middleware.AuthenticationMiddleware',
     
    146146    'django.contrib.sessions',
    147147    'django.contrib.sites',
     148    'django.contrib.staticfiles',
    148149    'django_extensions',
    149150    'gheat',
Note: See TracChangeset for help on using the changeset viewer.