settings.py 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. # Django settings for celery_http_gateway project.
  2. DEBUG = True
  3. TEMPLATE_DEBUG = DEBUG
  4. CARROT_BACKEND = 'amqp'
  5. CELERY_RESULT_BACKEND = 'database'
  6. BROKER_URL = 'amqp://guest:guest@localhost:5672//'
  7. ADMINS = (
  8. # ('Your Name', 'your_email@domain.com'),
  9. )
  10. MANAGERS = ADMINS
  11. # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
  12. DATABASE_ENGINE = 'sqlite3'
  13. # path to database file if using sqlite3.
  14. DATABASE_NAME = 'development.db'
  15. # Not used with sqlite3.
  16. DATABASE_USER = ''
  17. # Not used with sqlite3.
  18. DATABASE_PASSWORD = ''
  19. # Set to empty string for localhost. Not used with sqlite3.
  20. DATABASE_HOST = ''
  21. # Set to empty string for default. Not used with sqlite3.
  22. DATABASE_PORT = ''
  23. # Local time zone for this installation. Choices can be found here:
  24. # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
  25. # although not all choices may be available on all operating systems.
  26. # If running in a Windows environment this must be set to the same as your
  27. # system time zone.
  28. TIME_ZONE = 'America/Chicago'
  29. # Language code for this installation. All choices can be found here:
  30. # http://www.i18nguy.com/unicode/language-identifiers.html
  31. LANGUAGE_CODE = 'en-us'
  32. SITE_ID = 1
  33. # If you set this to False, Django will make some optimizations so as not
  34. # to load the internationalization machinery.
  35. USE_I18N = True
  36. # Absolute path to the directory that holds media.
  37. # Example: "/home/media/media.lawrence.com/"
  38. MEDIA_ROOT = ''
  39. # URL that handles the media served from MEDIA_ROOT. Make sure to use a
  40. # trailing slash if there is a path component (optional in other cases).
  41. # Examples: "http://media.lawrence.com", "http://example.com/media/"
  42. MEDIA_URL = ''
  43. # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
  44. # trailing slash.
  45. # Examples: "http://foo.com/media/", "/media/".
  46. ADMIN_MEDIA_PREFIX = '/media/'
  47. # Make this unique, and don't share it with anybody.
  48. SECRET_KEY = '#1i=edpk55k3781$z-p%b#dbn&n+-rtt83pgz2o9o)v8g7(owq'
  49. # List of callables that know how to import templates from various sources.
  50. TEMPLATE_LOADERS = (
  51. 'django.template.loaders.filesystem.load_template_source',
  52. 'django.template.loaders.app_directories.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 = 'celery_http_gateway.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. )
  66. INSTALLED_APPS = (
  67. 'django.contrib.auth',
  68. 'django.contrib.contenttypes',
  69. 'django.contrib.sessions',
  70. 'django.contrib.sites',
  71. 'djcelery',
  72. )