mirror of
https://github.com/jazzband/django-configurations.git
synced 2026-03-16 22:20:27 +00:00
Merge pull request #91 from benjaminabel/notebook-support-for-django17
Add `django.setup()` in `load_ipython_extension` function for django>=1....
This commit is contained in:
commit
b91ebf083f
1 changed files with 7 additions and 0 deletions
|
|
@ -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):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Reference in a new issue