configure django settings when building docs

This commit is contained in:
Gonçalo Valério 2019-12-01 00:30:18 +00:00
parent cb8ebbdfb7
commit 9642883190
1 changed files with 4 additions and 1 deletions

View File

@ -22,8 +22,11 @@ cwd = os.getcwd()
parent = os.path.dirname(cwd)
sys.path.append(parent)
import django_cryptolock
from django.conf import settings
settings.configure()
import django_cryptolock
# -- General configuration -----------------------------------------------------