Skip to content

Commit

Permalink
Merge pull request #91 from benjaminabel/notebook-support-for-django17
Browse files Browse the repository at this point in the history
Add `django.setup()` in `load_ipython_extension` function for django>=1....
  • Loading branch information
jezdez committed Feb 13, 2015
2 parents 8f617ad + 546f488 commit b91ebf0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions configurations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ def load_ipython_extension(ipython):

importer.install()

# django >=1.7
try:
import django
django.setup()
except AttributeError:
pass


def setup(app):
"""
Expand Down

0 comments on commit b91ebf0

Please sign in to comment.