| 1 |
import django |
| 2 |
|
| 3 |
# Django settings for celery_http_gateway project. |
| 4 |
|
| 5 |
|
| 6 |
DEBUG = True |
| 7 |
TEMPLATE_DEBUG = DEBUG |
| 8 |
|
| 9 |
CELERY_RESULT_BACKEND = 'database' |
| 10 |
BROKER_URL = 'amqp://guest:guest@localhost:5672//' |
| 11 |
|
| 12 |
ADMINS = ( |
| 13 |
# ('Your Name', '[email protected]'), |
| 14 |
) |
| 15 |
|
| 16 |
MANAGERS = ADMINS |
| 17 |
|
| 18 |
DATABASES = { |
| 19 |
'default': { |
| 20 |
'ENGINE': 'django.db.backends.sqlite3', |
| 21 |
'NAME': 'development.db', |
| 22 |
'USER': '', |
| 23 |
'PASSWORD': '', |
| 24 |
'HOST': '', |
| 25 |
'PORT': '', |
| 26 |
} |
| 27 |
} |
| 28 |
|
| 29 |
if django.VERSION[:3] < (1, 3): |
| 30 |
DATABASE_ENGINE = DATABASES['default']['ENGINE'] |
| 31 |
DATABASE_NAME = DATABASES['default']['NAME'] |
| 32 |
DATABASE_USER = DATABASES['default']['USER'] |
| 33 |
DATABASE_PASSWORD = DATABASES['default']['PASSWORD'] |
| 34 |
DATABASE_HOST = DATABASES['default']['HOST'] |
| 35 |
DATABASE_PORT = DATABASES['default']['PORT'] |
| 36 |
|
| 37 |
# Local time zone for this installation. Choices can be found here: |
| 38 |
# https://en.wikipedia.org/wiki/List_of_tz_zones_by_name |
| 39 |
# although not all choices may be available on all operating systems. |
| 40 |
# If running in a Windows environment this must be set to the same as your |
| 41 |
# system time zone. |
| 42 |
TIME_ZONE = 'America/Chicago' |
| 43 |
|
| 44 |
# Language code for this installation. All choices can be found here: |
| 45 |
# http://www.i18nguy.com/unicode/language-identifiers.html |
| 46 |
LANGUAGE_CODE = 'en-us' |
| 47 |
|
| 48 |
SITE_ID = 1 |
| 49 |
|
| 50 |
# If you set this to False, Django will make some optimizations so as not |
| 51 |
# to load the internationalization machinery. |
| 52 |
USE_I18N = True |
| 53 |
|
| 54 |
# Absolute path to the directory that holds media. |
| 55 |
# Example: '/home/media/media.lawrence.com/' |
| 56 |
MEDIA_ROOT = '' |
| 57 |
|
| 58 |
# URL that handles the media served from MEDIA_ROOT. Make sure to use a |
| 59 |
# trailing slash if there's a path component (optional in other cases). |
| 60 |
# Examples: 'http://media.lawrence.com', 'http://example.com/media/' |
| 61 |
MEDIA_URL = '' |
| 62 |
|
| 63 |
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a |
| 64 |
# trailing slash. |
| 65 |
# Examples: 'http://foo.com/media/', '/media/'. |
| 66 |
ADMIN_MEDIA_PREFIX = '/media/' |
| 67 |
|
| 68 |
# Make this unique, and don't share it with anybody. |
| 69 |
# XXX TODO FIXME Set this secret key to anything you want, just change it! |
| 70 |
SECRET_KEY = 'This is not a secret, be sure to change this.' |
| 71 |
|
| 72 |
# List of callables that know how to import templates from various sources. |
| 73 |
TEMPLATE_LOADERS = ( |
| 74 |
'django.template.loaders.filesystem.load_template_source', |
| 75 |
'django.template.loaders.app_directories.load_template_source', |
| 76 |
) |
| 77 |
|
| 78 |
MIDDLEWARE = [ |
| 79 |
'django.middleware.common.CommonMiddleware', |
| 80 |
'django.contrib.sessions.middleware.SessionMiddleware', |
| 81 |
'django.contrib.auth.middleware.AuthenticationMiddleware', |
| 82 |
] |
| 83 |
|
| 84 |
ROOT_URLCONF = 'celery_http_gateway.urls' |
| 85 |
|
| 86 |
TEMPLATE_DIRS = ( |
| 87 |
# Put strings here, like '/home/html/django_templates' or |
| 88 |
# 'C:/www/django/templates'. |
| 89 |
# Always use forward slashes, even on Windows. |
| 90 |
# Don't forget to use absolute paths, not relative paths. |
| 91 |
) |
| 92 |
|
| 93 |
INSTALLED_APPS = ( |
| 94 |
'django.contrib.auth', |
| 95 |
'django.contrib.contenttypes', |
| 96 |
'django.contrib.sessions', |
| 97 |
'django.contrib.sites', |
| 98 |
'djcelery', |
| 99 |
) |