Skip to content

Commit

Permalink
Making the autodoc work with Django
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
apragacz committed Feb 15, 2019
1 parent 139752b commit 11e7323
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
import re
import sys

import django # noqa: E402
from django.conf import settings # noqa: E402

# -- Path setup --------------------------------------------------------------
DOCS_DIR = os.path.abspath(os.path.dirname(__file__))
ROOT_DIR = os.path.dirname(DOCS_DIR)
Expand All @@ -21,6 +24,10 @@
SETTINGS_FIELDS_GROUPS_MAP,
) # noqa: E402

settings.configure()
django.setup()


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


Expand Down
2 changes: 2 additions & 0 deletions requirements/requirements-docs-all.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-r requirements-base.txt
-r requirements-docs.txt
1 change: 1 addition & 0 deletions requirements/requirements-testing-base.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
coreapi
django-dynamic-fixture
pytest
1 change: 0 additions & 1 deletion requirements/requirements-testing.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
tox
pytest
pytest-django
pytest-cov

0 comments on commit 11e7323

Please sign in to comment.