settings.py 2.2 KB

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