Skip to content

Commit

Permalink
update docs conf
Browse files Browse the repository at this point in the history
  • Loading branch information
tokibito committed Feb 23, 2022
1 parent 43c626b commit 67829d4
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,10 @@
# serve to show the default.

import sys
import os
from pathlib import Path

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), '../../'))
BASE_DIR = Path(__file__).resolve().parent.parent.parent
sys.path.insert(0, str(BASE_DIR))

def setup_django():
import django
Expand All @@ -40,7 +38,7 @@ def setup_django():
'django.contrib.messages',
'django_ftpserver',
),
SECRET='secret'
SECRET_KEY='secret'
)
django.setup()
from django.apps import apps
Expand Down

0 comments on commit 67829d4

Please sign in to comment.