Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 28th, 2012  |  syntax: None  |  size: 5.37 KB  |  hits: 16  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Django settings for werewolf project.
  2.  
  3. DEBUG = True
  4. TEMPLATE_DEBUG = DEBUG
  5.  
  6. ADMINS = (
  7.     # ('Your Name', 'your_email@example.com'),
  8. )
  9.  
  10. MANAGERS = ADMINS
  11.  
  12. DATABASES = {
  13.     'default': {
  14.         'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
  15.         #'NAME': '/home/robert/werewolf/tmp/database.db', # Or path to database file if using sqlite3.
  16.         'NAME': '/Users/robert/Sites/werewolf/tmp/database.db',
  17.         'USER': '',                      # Not used with sqlite3.
  18.         'PASSWORD': '',                  # Not used with sqlite3.
  19.         'HOST': '',                      # Set to empty string for localhost. Not used with sqlite3.
  20.         'PORT': '',                      # Set to empty string for default. Not used with sqlite3.
  21.     }
  22. }
  23.  
  24. # Local time zone for this installation. Choices can be found here:
  25. # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
  26. # although not all choices may be available on all operating systems.
  27. # On Unix systems, a value of None will cause Django to use the same
  28. # timezone as the operating system.
  29. # If running in a Windows environment this must be set to the same as your
  30. # system time zone.
  31. TIME_ZONE = 'America/Chicago'
  32.  
  33. # Language code for this installation. All choices can be found here:
  34. # http://www.i18nguy.com/unicode/language-identifiers.html
  35. LANGUAGE_CODE = 'en-us'
  36.  
  37. SITE_ID = 1
  38.  
  39. # If you set this to False, Django will make some optimizations so as not
  40. # to load the internationalization machinery.
  41. USE_I18N = True
  42.  
  43. # If you set this to False, Django will not format dates, numbers and
  44. # calendars according to the current locale
  45. USE_L10N = True
  46.  
  47. # Absolute filesystem path to the directory that will hold user-uploaded files.
  48. # Example: "/home/media/media.lawrence.com/media/"
  49. #MEDIA_ROOT = '/home/robert/werewolf/werewolf/media/'
  50. MEDIA_ROOT = '/Users/robert/Sites/werewolf/werewolf/media/'
  51.  
  52. # URL that handles the media served from MEDIA_ROOT. Make sure to use a
  53. # trailing slash.
  54. # Examples: "http://media.lawrence.com/media/", "http://example.com/media/"
  55. MEDIA_URL = '/media/'
  56.  
  57. # Absolute path to the directory static files should be collected to.
  58. # Don't put anything in this directory yourself; store your static files
  59. # in apps' "static/" subdirectories and in STATICFILES_DIRS.
  60. # Example: "/home/media/media.lawrence.com/static/"
  61. #STATIC_ROOT = '/home/robert/werewolf/werewolf/static/'
  62. STATIC_ROOT = '/Users/robert/Sites/werewolf/werewolf/static/'
  63.  
  64. # URL prefix for static files.
  65. # Example: "http://media.lawrence.com/static/"
  66. STATIC_URL = '/static/'
  67.  
  68. # URL prefix for admin static files -- CSS, JavaScript and images.
  69. # Make sure to use a trailing slash.
  70. # Examples: "http://foo.com/static/admin/", "/static/admin/".
  71. ADMIN_MEDIA_PREFIX = '/static/admin/'
  72.  
  73. # Additional locations of static files
  74. STATICFILES_DIRS = (
  75.     # Put strings here, like "/home/html/static" or "C:/www/django/static".
  76.     # Always use forward slashes, even on Windows.
  77.     # Don't forget to use absolute paths, not relative paths
  78. )
  79.  
  80. # List of finder classes that know how to find static files in
  81. # various locations.
  82. STATICFILES_FINDERS = (
  83.     'django.contrib.staticfiles.finders.FileSystemFinder',
  84.     'django.contrib.staticfiles.finders.AppDirectoriesFinder',
  85. #    'django.contrib.staticfiles.finders.DefaultStorageFinder',
  86. )
  87.  
  88. # Make this unique, and don't share it with anybody.
  89. SECRET_KEY = 'wh6y$=77kbuyu!!y4lxvup=o9n96w@&5pa-e7)c9tq^x&ojaap'
  90.  
  91. # List of callables that know how to import templates from various sources.
  92. TEMPLATE_LOADERS = (
  93.     'django.template.loaders.filesystem.Loader',
  94.     'django.template.loaders.app_directories.Loader',
  95. #     'django.template.loaders.eggs.Loader',
  96. )
  97.  
  98. MIDDLEWARE_CLASSES = (
  99.     'django.middleware.common.CommonMiddleware',
  100.     'django.contrib.sessions.middleware.SessionMiddleware',
  101.     'django.middleware.csrf.CsrfViewMiddleware',
  102.     'django.contrib.auth.middleware.AuthenticationMiddleware',
  103.     'django.contrib.messages.middleware.MessageMiddleware',
  104. )
  105.  
  106. ROOT_URLCONF = 'werewolf.urls'
  107.  
  108. TEMPLATE_DIRS = (
  109.     # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
  110.     # Always use forward slashes, even on Windows.
  111.     # Don't forget to use absolute paths, not relative paths.
  112.     #'/home/robert/werewolf/werewolf/templates',
  113.     '/Users/robert/Sites/werewolf/werewolf/templates',
  114. )
  115.  
  116. INSTALLED_APPS = (
  117.     'django.contrib.auth',
  118.     'django.contrib.contenttypes',
  119.     'django.contrib.sessions',
  120.     'django.contrib.sites',
  121.     'django.contrib.messages',
  122.     'django.contrib.staticfiles',
  123.     # Uncomment the next line to enable the admin:
  124.     'django.contrib.admin',
  125.     # Uncomment the next line to enable admin documentation:
  126.     'django.contrib.admindocs',
  127.  
  128.     'apps.common',
  129.     'apps.games',
  130.     'apps.comm',
  131.     'apps.profile',
  132. )
  133.  
  134. # A sample logging configuration. The only tangible logging
  135. # performed by this configuration is to send an email to
  136. # the site admins on every HTTP 500 error.
  137. # See http://docs.djangoproject.com/en/dev/topics/logging for
  138. # more details on how to customize your logging configuration.
  139. LOGGING = {
  140.     'version': 1,
  141.     'disable_existing_loggers': False,
  142.     'handlers': {
  143.         'mail_admins': {
  144.             'level': 'ERROR',
  145.             'class': 'django.utils.log.AdminEmailHandler'
  146.         }
  147.     },
  148.     'loggers': {
  149.         'django.request': {
  150.             'handlers': ['mail_admins'],
  151.             'level': 'ERROR',
  152.             'propagate': True,
  153.         },
  154.     }
  155. }