mirror of
https://github.com/jazzband/django-configurations.git
synced 2026-05-10 08:35:02 +00:00
Revert "doc: cookbook: document workaround for celery (#197)"
This reverts commit 2b0d2cee0a.
This commit is contained in:
parent
5770f02bab
commit
80a648bb03
1 changed files with 2 additions and 5 deletions
|
|
@ -136,11 +136,8 @@ Celery's documentation`_:
|
|||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'mysite.settings')
|
||||
os.environ.setdefault('DJANGO_CONFIGURATION', 'MySiteConfiguration')
|
||||
|
||||
# The extra check is necessary to not call django.setup() twice.
|
||||
from configurations import importer
|
||||
if not importer.installed:
|
||||
import configurations
|
||||
configurations.setup()
|
||||
import configurations
|
||||
configurations.setup()
|
||||
|
||||
app = Celery('mysite')
|
||||
app.config_from_object('django.conf:settings')
|
||||
|
|
|
|||
Loading…
Reference in a new issue