Advertisement
Guest User

settings.py

a guest
Jul 22nd, 2011
352
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.52 KB | None | 0 0
  1.  
  2. import os
  3.  
  4. ADMINS = (
  5. # ('Your Name', '[email protected]'),
  6. )
  7.  
  8. MANAGERS = ADMINS
  9.  
  10. TIME_ZONE = 'America/Chicago'
  11.  
  12. LANGUAGE_CODE = 'en-us'
  13.  
  14. # Absolute path to the directory that holds media.
  15. # Example: "/home/media/media.lawrence.com/"
  16. #MEDIA_ROOT = os.path.join(os.path.dirname(__file__), 'media')
  17. MEDIA_ROOT = '/home/wluw/wluw/wluw/media/'
  18.  
  19.  
  20.  
  21. TEMPLATE_CONTEXT_PROCESSORS = (
  22. "django.core.context_processors.auth",
  23. "django.core.context_processors.debug",
  24. "django.core.context_processors.i18n",
  25. "django.core.context_processors.media",
  26. "django.core.context_processors.request",
  27. "radio.station.context_processors.google_analytics",
  28. "radio.station.context_processors.current_datetime",
  29. "radio.frontend.context_processors.today",
  30. )
  31.  
  32. # URL that handles the media served from MEDIA_ROOT. Make sure to use a
  33. # trailing slash if there is a path component (optional in other cases).
  34. # Examples: "http://media.lawrence.com", "http://example.com/media/"
  35. MEDIA_URL = '/media/'
  36.  
  37. # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
  38. # trailing slash.
  39. # Examples: "http://foo.com/media/", "/media/".
  40. ADMIN_MEDIA_PREFIX = '/admin_media/'
  41.  
  42. # Don't share this with anybody.
  43. SECRET_KEY = 'y3cpni&%g-v-)qge&^dj@9u*fw_ety%4duxgrt#w$5o#b0@_+4'
  44.  
  45. MIDDLEWARE_CLASSES = (
  46. 'django.middleware.common.CommonMiddleware',
  47. 'django.contrib.sessions.middleware.SessionMiddleware',
  48. 'django.contrib.auth.middleware.AuthenticationMiddleware',
  49. 'django.middleware.doc.XViewMiddleware',
  50. 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
  51. 'annoying.middlewares.StaticServe',
  52. )
  53.  
  54. ROOT_URLCONF = 'wluw.urls'
  55.  
  56.  
  57. INSTALLED_APPS = (
  58. 'django.contrib.auth',
  59. 'django.contrib.contenttypes',
  60. 'django.contrib.sessions',
  61. 'django.contrib.admin',
  62. 'django.contrib.sites',
  63. 'django.contrib.flatpages',
  64. 'django.contrib.markup',
  65. 'django.contrib.staticfiles',
  66. 'south',
  67. 'radio.frontend',
  68. 'radio.events',
  69. 'radio.library',
  70. 'radio.logs',
  71. 'radio.station',
  72. 'radio.staff',
  73. 'gravatar',
  74. 'djcelery',
  75. 'gunicorn'
  76. )
  77.  
  78. TEMPLATE_LOADERS = (
  79. 'django.template.loaders.filesystem.load_template_source',
  80. 'django.template.loaders.app_directories.load_template_source',
  81. )
  82.  
  83. TEMPLATE_DIRS = (
  84. os.path.join(os.path.dirname(__file__), "templates"),
  85. )
  86.  
  87. AUTH_PROFILE_MODULE = 'radio_station.DJ'
  88. SITE_ID = 1
  89.  
  90. NODE_PORT = 8124
  91.  
  92. try:
  93. from local_settings import *
  94. except ImportError:
  95. pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement