mirror of
https://github.com/jazzband/django-configurations.git
synced 2026-05-12 09:33:13 +00:00
Merge pull request #200 from jazzband/revert-197-issue/GH196
Revert "add configuration as suggested from @blueyed"
This commit is contained in:
commit
c0ac52f948
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