mirror of
https://github.com/jazzband/django-configurations.git
synced 2026-03-16 22:20:27 +00:00
Add django.setup() in load_ipython_extension function for django>=1.7 compatibility
This commit is contained in:
parent
f53e999041
commit
546f488197
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