Skip to content

Commit

Permalink
Setup Django in the Sphinx configuration module.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Gaevsky committed Aug 25, 2018
1 parent a6d61a7 commit c2b164b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/source/conf.py
Expand Up @@ -14,9 +14,14 @@
#
import os
import sys

import django

project_folder = os.path.realpath(os.path.join(os.path.dirname(__file__), '../..'))
sys.path.insert(0, project_folder)

django.setup()

# -- Project information -----------------------------------------------------

project = 'django-oscar-invoices'
Expand Down

0 comments on commit c2b164b

Please sign in to comment.