settings.py 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. # Django settings for demoproject project.
  2. DEBUG = True
  3. TEMPLATE_DEBUG = DEBUG
  4. ADMINS = (
  5. # ('Your Name', 'your_email@domain.com'),
  6. )
  7. MANAGERS = ADMINS
  8. DATABASE_ENGINE = '' # 'postgresql_psycopg2', 'postgresql', 'mysql',
  9. # 'sqlite3' or 'oracle'.
  10. DATABASE_NAME = '' # Or path to database file if using sqlite3.
  11. DATABASE_USER = '' # Not used with sqlite3.
  12. DATABASE_PASSWORD = '' # Not used with sqlite3.
  13. DATABASE_HOST = '' # Set to empty string for localhost.
  14. # Not used with sqlite3.
  15. DATABASE_PORT = '' # Set to empty string for default.
  16. # Not used with sqlite3.
  17. INSTALLED_APPS = (
  18. 'django.contrib.auth',
  19. 'django.contrib.contenttypes',
  20. 'django.contrib.sessions',
  21. 'django.contrib.sites',
  22. 'celery',
  23. 'demoapp',
  24. 'twitterfollow',
  25. )
  26. TIME_ZONE = 'America/Chicago'
  27. LANGUAGE_CODE = 'en-us'
  28. SITE_ID = 1
  29. USE_I18N = True
  30. # Absolute path to the directory that holds media.
  31. # Example: "/home/media/media.lawrence.com/"
  32. MEDIA_ROOT = ''
  33. # URL that handles the media served from MEDIA_ROOT. Make sure to use a
  34. # trailing slash if there is a path component (optional in other cases).
  35. # Examples: "http://media.lawrence.com", "http://example.com/media/"
  36. MEDIA_URL = ''
  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 = '/media/'
  41. # Make this unique, and don't share it with anybody.
  42. SECRET_KEY = '!j@j8x^6hr&ue7#n1w@d8zr@#=xqb#br4tjcjy50wuv_5rs7r('
  43. # List of callables that know how to import templates from various sources.
  44. TEMPLATE_LOADERS = (
  45. 'django.template.loaders.filesystem.load_template_source',
  46. 'django.template.loaders.app_directories.load_template_source',
  47. # 'django.template.loaders.eggs.load_template_source',
  48. )
  49. MIDDLEWARE_CLASSES = (
  50. 'django.middleware.common.CommonMiddleware',
  51. 'django.contrib.sessions.middleware.SessionMiddleware',
  52. 'django.contrib.auth.middleware.AuthenticationMiddleware',
  53. )
  54. ROOT_URLCONF = 'demoproject.urls'
  55. TEMPLATE_DIRS = (
  56. # Put strings here, like "/home/html/django_templates" or
  57. # "C:/www/django/templates".
  58. # Always use forward slashes, even on Windows.
  59. # Don't forget to use absolute paths, not relative paths.
  60. )