settings.py 2.3 KB

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