Skip to content

Commit

Permalink
Fix doc AppRegistryNotReady
Browse files Browse the repository at this point in the history
WARNING: autodoc: failed to import module u'import_export.admin'; the following exception was raised:
AppRegistryNotReady: Apps aren't loaded yet.
  • Loading branch information
bmihelac committed Dec 21, 2015
1 parent 8193847 commit cfdb860
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
sys.path.append(os.path.abspath('../tests'))
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'

import django
django.setup()

# -- General configuration -----------------------------------------------------

# If your documentation needs a minimal Sphinx version, state it here.
Expand Down

0 comments on commit cfdb860

Please sign in to comment.