settings.py 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. # Django settings for celery_http_gateway project.
  2. DEBUG = True
  3. TEMPLATE_DEBUG = DEBUG
  4. CARROT_BACKEND = "amqp"
  5. CELERY_BACKEND = "database"
  6. BROKER_HOST = "localhost"
  7. BROKER_VHOST = "/"
  8. BROKER_USER = "guest"
  9. BROKER_PASSWORD = "guest"
  10. ADMINS = (
  11. # ('Your Name', 'your_email@domain.com'),
  12. )
  13. MANAGERS = ADMINS
  14. # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
  15. DATABASE_ENGINE = 'sqlite3'
  16. # path to database file if using sqlite3.
  17. DATABASE_NAME = 'development.db'
  18. # Not used with sqlite3.
  19. DATABASE_USER = ''
  20. # Not used with sqlite3.
  21. DATABASE_PASSWORD = ''
  22. # Set to empty string for localhost. Not used with sqlite3.
  23. DATABASE_HOST = ''
  24. # Set to empty string for default. Not used with sqlite3.
  25. DATABASE_PORT = ''
  26. # Local time zone for this installation. Choices can be found here:
  27. # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
  28. # although not all choices may be available on all operating systems.
  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. # Language code for this installation. All choices can be found here:
  33. # http://www.i18nguy.com/unicode/language-identifiers.html
  34. LANGUAGE_CODE = 'en-us'
  35. SITE_ID = 1
  36. # If you set this to False, Django will make some optimizations so as not
  37. # to load the internationalization machinery.
  38. USE_I18N = True
  39. # Absolute path to the directory that holds media.
  40. # Example: "/home/media/media.lawrence.com/"
  41. MEDIA_ROOT = ''
  42. # URL that handles the media served from MEDIA_ROOT. Make sure to use a
  43. # trailing slash if there is a path component (optional in other cases).
  44. # Examples: "http://media.lawrence.com", "http://example.com/media/"
  45. MEDIA_URL = ''
  46. # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
  47. # trailing slash.
  48. # Examples: "http://foo.com/media/", "/media/".
  49. ADMIN_MEDIA_PREFIX = '/media/'
  50. # Make this unique, and don't share it with anybody.
  51. SECRET_KEY = '#1i=edpk55k3781$z-p%b#dbn&n+-rtt83pgz2o9o)v8g7(owq'
  52. # List of callables that know how to import templates from various sources.
  53. TEMPLATE_LOADERS = (
  54. 'django.template.loaders.filesystem.load_template_source',
  55. 'django.template.loaders.app_directories.load_template_source',
  56. # 'django.template.loaders.eggs.load_template_source',
  57. )
  58. MIDDLEWARE_CLASSES = (
  59. 'django.middleware.common.CommonMiddleware',
  60. 'django.contrib.sessions.middleware.SessionMiddleware',
  61. 'django.contrib.auth.middleware.AuthenticationMiddleware',
  62. )
  63. ROOT_URLCONF = 'celery_http_gateway.urls'
  64. TEMPLATE_DIRS = (
  65. # Put strings here, like "/home/html/django_templates" or
  66. # "C:/www/django/templates".
  67. # Always use forward slashes, even on Windows.
  68. # Don't forget to use absolute paths, not relative paths.
  69. )
  70. INSTALLED_APPS = (
  71. 'django.contrib.auth',
  72. 'django.contrib.contenttypes',
  73. 'django.contrib.sessions',
  74. 'django.contrib.sites',
  75. 'celery',
  76. )