mirror of
https://github.com/jazzband/django-downloadview.git
synced 2026-03-16 22:40:25 +00:00
Added minimal Django settings in Sphinx configuration.
This commit is contained in:
parent
b01fa006aa
commit
6b58ea1398
1 changed files with 10 additions and 0 deletions
10
docs/conf.py
10
docs/conf.py
|
|
@ -14,6 +14,16 @@
|
|||
import sys, os
|
||||
|
||||
|
||||
# Minimal Django settings. Required to use sphinx.ext.autodoc, because
|
||||
# django-downloadview depends on Django...
|
||||
from django.conf import settings
|
||||
|
||||
|
||||
settings.configure(
|
||||
DATABASES={}, # Required to load ``django.views.generic``.
|
||||
)
|
||||
|
||||
|
||||
doc_dir = os.path.dirname(os.path.abspath(__file__))
|
||||
project_dir = os.path.dirname(doc_dir)
|
||||
version_filename = os.path.join(project_dir, 'VERSION')
|
||||
|
|
|
|||
Loading…
Reference in a new issue