PageRenderTime 50ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 1ms

/fiftystates/site/settings.py

https://github.com/runderwood/openstates
Python | 97 lines | 61 code | 16 blank | 20 comment | 3 complexity | ea5d6f00ccd1ff70484001ee44f68d42 MD5 | raw file
  1. import os
  2. DEBUG = False
  3. TEMPLATE_DEBUG = False
  4. ADMINS = (
  5. ('James Turk', 'jturk@sunlightfoundation.com'),
  6. ('Michael Stephens', 'mstephens@sunlightfoundation.com'),
  7. )
  8. MANAGERS = ADMINS
  9. # Local time zone for this installation. Choices can be found here:
  10. # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
  11. # although not all choices may be available on all operating systems.
  12. # If running in a Windows environment this must be set to the same as your
  13. # system time zone.
  14. TIME_ZONE = 'America/New_York'
  15. # Language code for this installation. All choices can be found here:
  16. # http://www.i18nguy.com/unicode/language-identifiers.html
  17. LANGUAGE_CODE = 'en-us'
  18. SITE_ID = 1
  19. # If you set this to False, Django will make some optimizations so as not
  20. # to load the internationalization machinery.
  21. USE_I18N = True
  22. # Absolute path to the directory that holds media.
  23. # Example: "/home/media/media.lawrence.com/"
  24. MEDIA_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__),
  25. 'media/'))
  26. # URL that handles the media served from MEDIA_ROOT. Make sure to use a
  27. # trailing slash if there is a path component (optional in other cases).
  28. # Examples: "http://media.lawrence.com", "http://example.com/media/"
  29. MEDIA_URL = ''
  30. # URL prefix for admin media -- CSS, JavaScript and images.
  31. # Make sure to use a trailing slash.
  32. # Examples: "http://foo.com/media/", "/media/".
  33. ADMIN_MEDIA_PREFIX = '/admin_media/'
  34. # Make this unique, and don't share it with anybody.
  35. SECRET_KEY = 'qe_7q2@i9sskbz&hf5tx)39z0=shicxr*_57yr0jw2bxr7=i8+'
  36. # List of callables that know how to import templates from various sources.
  37. TEMPLATE_LOADERS = (
  38. 'django.template.loaders.filesystem.load_template_source',
  39. 'django.template.loaders.app_directories.load_template_source',
  40. # 'django.template.loaders.eggs.load_template_source',
  41. )
  42. MIDDLEWARE_CLASSES = (
  43. 'django.middleware.cache.UpdateCacheMiddleware',
  44. 'django.middleware.common.CommonMiddleware',
  45. 'django.contrib.sessions.middleware.SessionMiddleware',
  46. 'django.contrib.auth.middleware.AuthenticationMiddleware',
  47. 'django.middleware.cache.FetchFromCacheMiddleware',
  48. 'locksmith.auth.middleware.APIKeyMiddleware',
  49. 'django.contrib.redirects.middleware.RedirectFallbackMiddleware',
  50. )
  51. ROOT_URLCONF = 'fiftystates.site.urls'
  52. TEMPLATE_DIRS = (
  53. # Put strings here, like "/home/html/django_templates" or
  54. # "C:/www/django/templates".
  55. # Always use forward slashes, even on Windows.
  56. # Don't forget to use absolute paths, not relative paths.
  57. "/home/fiftystates_site/fiftystates_site/fiftystates/templates/",
  58. "/home/fiftystates_site/fiftystates_site/state_geo/templates/",
  59. "/home/fiftystates_site/fiftystates_site/status/templates/",
  60. )
  61. INSTALLED_APPS = (
  62. 'django.contrib.auth',
  63. 'django.contrib.contenttypes',
  64. 'django.contrib.sessions',
  65. 'django.contrib.sites',
  66. 'django.contrib.admin',
  67. 'django.contrib.admindocs',
  68. 'django.contrib.humanize',
  69. 'django.contrib.gis',
  70. 'django.contrib.redirects',
  71. 'fiftystates.site.api',
  72. 'fiftystates.site.geo',
  73. 'fiftystates.site.browse',
  74. 'locksmith.auth',
  75. )
  76. try:
  77. from local_settings import *
  78. except ImportError:
  79. pass