mirror of
https://github.com/jazzband/django-axes.git
synced 2026-03-16 22:30:23 +00:00
Fix docs build settings loading
This commit is contained in:
parent
5cc75704c7
commit
5790b09188
1 changed files with 5 additions and 4 deletions
|
|
@ -6,15 +6,16 @@ More information on the configuration options is available at:
|
|||
http://www.sphinx-doc.org/en/master/usage/configuration.html
|
||||
"""
|
||||
|
||||
from os import environ
|
||||
|
||||
import django
|
||||
import sphinx_rtd_theme
|
||||
from pkg_resources import get_distribution
|
||||
|
||||
environ.setdefault("DJANGO_SETTINGS_MODULE", "tests.settings")
|
||||
import django
|
||||
from django.conf import settings
|
||||
|
||||
settings.configure(INSTALLED_APPS=["django", "django.contrib.auth", "axes"], DEBUG=True)
|
||||
django.setup()
|
||||
|
||||
|
||||
# -- Extra custom configuration ------------------------------------------
|
||||
|
||||
title = "django-axes documentation"
|
||||
|
|
|
|||
Loading…
Reference in a new issue