mirror of
https://github.com/jazzband/django-configurations.git
synced 2026-05-03 13:14:46 +00:00
Fix docs regarding celery setup
This commit is contained in:
parent
c60b7daac4
commit
a7f893a3fa
2 changed files with 4 additions and 3 deletions
3
AUTHORS
3
AUTHORS
|
|
@ -3,4 +3,5 @@ Gilles Fabio
|
|||
Jannis Leidel
|
||||
Marc Abramowitz
|
||||
Michael van Tellingen
|
||||
Mike Fogel
|
||||
Mike Fogel
|
||||
Christian Schmizz
|
||||
|
|
@ -155,8 +155,8 @@ Celery's documentation`_:
|
|||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'mysite.settings')
|
||||
os.environ.setdefault('DJANGO_CONFIGURATION', 'MySiteConfiguration')
|
||||
|
||||
import configurations
|
||||
configurations.setup()
|
||||
from configurations import importer
|
||||
importer.install()
|
||||
|
||||
app = Celery('mysite')
|
||||
app.config_from_object('django.conf:settings')
|
||||
|
|
|
|||
Loading…
Reference in a new issue