local_settings.py.template 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. from __future__ import unicode_literals
  2. SECRET_KEY = "%(secret_key)s"
  3. NEVERCACHE_KEY = "%(nevercache_key)s"
  4. ALLOWED_HOSTS = [%(domains_python)s]
  5. DATABASES = {
  6. "default": {
  7. # Ends with "postgresql_psycopg2", "mysql", "sqlite3" or "oracle".
  8. "ENGINE": "django.db.backends.postgresql_psycopg2",
  9. # DB name or path to database file if using sqlite3.
  10. "NAME": "%(proj_name)s",
  11. # Not used with sqlite3.
  12. "USER": "%(proj_name)s",
  13. # Not used with sqlite3.
  14. "PASSWORD": "%(db_pass)s",
  15. # Set to empty string for localhost. Not used with sqlite3.
  16. "HOST": "127.0.0.1",
  17. # Set to empty string for default. Not used with sqlite3.
  18. "PORT": "",
  19. }
  20. }
  21. SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTOCOL", "https")
  22. CACHE_MIDDLEWARE_SECONDS = 60
  23. CACHE_MIDDLEWARE_KEY_PREFIX = "%(proj_name)s"
  24. CACHES = {
  25. "default": {
  26. "BACKEND": "django.core.cache.backends.memcached.MemcachedCache",
  27. "LOCATION": "127.0.0.1:11211",
  28. }
  29. }
  30. SESSION_ENGINE = "django.contrib.sessions.backends.cache"