|
5 | 5 | import djcelery |
6 | 6 | djcelery.setup_loader() |
7 | 7 |
|
8 | | -BROKER_URL = "amqp://guest:guest@localhost:5672//" |
9 | | -CELERY_RESULT_BACKEND = "database" |
| 8 | +BROKER_URL = 'amqp://guest:guest@localhost:5672//' |
| 9 | +CELERY_RESULT_BACKEND = 'database' |
10 | 10 |
|
11 | 11 | # -- other necessary settings. |
12 | 12 |
|
13 | | -DATABASES = {"default": {"NAME": "testdb.sqlite", |
14 | | - "ENGINE": "django.db.backends.sqlite3", |
15 | | - "USER": '', |
16 | | - "PASSWORD": '', |
17 | | - "HOST": '', |
18 | | - "PORT": ''}} |
| 13 | +DATABASES = {'default': {'NAME': 'testdb.sqlite', |
| 14 | + 'ENGINE': 'django.db.backends.sqlite3', |
| 15 | + 'USER': '', |
| 16 | + 'PASSWORD': '', |
| 17 | + 'HOST': '', |
| 18 | + 'PORT': ''}} |
19 | 19 |
|
20 | 20 |
|
21 | 21 | INSTALLED_APPS = ( |
|
68 | 68 | USE_TZ = True |
69 | 69 |
|
70 | 70 | # Absolute filesystem path to the directory that will hold user-uploaded files. |
71 | | -# Example: "/home/media/media.lawrence.com/media/" |
| 71 | +# Example: '/home/media/media.lawrence.com/media/' |
72 | 72 | MEDIA_ROOT = '' |
73 | 73 |
|
74 | 74 | # URL that handles the media served from MEDIA_ROOT. Make sure to use a |
75 | 75 | # trailing slash. |
76 | | -# Examples: "http://media.lawrence.com/media/", "http://example.com/media/" |
| 76 | +# Examples: 'http://media.lawrence.com/media/', 'http://example.com/media/' |
77 | 77 | MEDIA_URL = '' |
78 | 78 |
|
79 | 79 | # Absolute path to the directory static files should be collected to. |
80 | 80 | # Don't put anything in this directory yourself; store your static files |
81 | | -# in apps' "static/" subdirectories and in STATICFILES_DIRS. |
82 | | -# Example: "/home/media/media.lawrence.com/static/" |
| 81 | +# in apps' 'static/' subdirectories and in STATICFILES_DIRS. |
| 82 | +# Example: '/home/media/media.lawrence.com/static/' |
83 | 83 | STATIC_ROOT = '' |
84 | 84 |
|
85 | 85 | # URL prefix for static files. |
86 | | -# Example: "http://media.lawrence.com/static/" |
| 86 | +# Example: 'http://media.lawrence.com/static/' |
87 | 87 | STATIC_URL = '/static/' |
88 | 88 |
|
89 | 89 | # Additional locations of static files |
90 | 90 | STATICFILES_DIRS = ( |
91 | | - # Put strings here, like "/home/html/static" or "C:/www/django/static". |
| 91 | + # Put strings here, like '/home/html/static' or 'C:/www/django/static'. |
92 | 92 | # Always use forward slashes, even on Windows. |
93 | 93 | # Don't forget to use absolute paths, not relative paths. |
94 | 94 | ) |
|
98 | 98 | STATICFILES_FINDERS = ( |
99 | 99 | 'django.contrib.staticfiles.finders.FileSystemFinder', |
100 | 100 | 'django.contrib.staticfiles.finders.AppDirectoriesFinder', |
101 | | -# 'django.contrib.staticfiles.finders.DefaultStorageFinder', |
102 | 101 | ) |
103 | 102 |
|
104 | 103 | # Make this unique, and don't share it with anybody. |
|
108 | 107 | TEMPLATE_LOADERS = ( |
109 | 108 | 'django.template.loaders.filesystem.Loader', |
110 | 109 | 'django.template.loaders.app_directories.Loader', |
111 | | -# 'django.template.loaders.eggs.Loader', |
112 | 110 | ) |
113 | 111 |
|
114 | 112 | MIDDLEWARE_CLASSES = ( |
|
127 | 125 | WSGI_APPLICATION = 'demoproject.wsgi.application' |
128 | 126 |
|
129 | 127 | TEMPLATE_DIRS = ( |
130 | | - # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". |
| 128 | + # Put strings here, like '/home/html/django_templates' |
| 129 | + # or 'C:/www/django/templates'. |
131 | 130 | # Always use forward slashes, even on Windows. |
132 | 131 | # Don't forget to use absolute paths, not relative paths. |
133 | 132 | ) |
|
0 commit comments