Skip to content

Commit

Permalink
Merge pull request #200 from jazzband/revert-197-issue/GH196
Browse files Browse the repository at this point in the history
Revert "add configuration as suggested from @blueyed"
  • Loading branch information
jezdez committed Jul 11, 2018
2 parents b43bf2d + 80a648b commit c0ac52f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions docs/cookbook.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit c0ac52f

Please sign in to comment.