settings.py 2.9 KB

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