-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed building docs on modern Django
- Loading branch information
Showing
7 changed files
with
63 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# for readthedocs | ||
Django==2.2.3 | ||
django-admin-tools==0.8.1 | ||
dashboardmods==1.0 | ||
sphinxcontrib-django==0.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Settings file to allow parsing API documentation of Django modules, | ||
# and provide defaults to use in the documentation. | ||
# | ||
# This file is placed in a subfolder, | ||
# so the docs root is not used by find_packages() | ||
|
||
STATIC_URL = "/static/" | ||
SECRET_KEY = "docs" | ||
|
||
USE_I18N = True | ||
|
||
INSTALLED_APPS = [ | ||
"fluent_dashboard", | ||
"admin_tools", | ||
"admin_tools.theming", | ||
"admin_tools.menu", | ||
"admin_tools.dashboard", | ||
"django.contrib.admin", | ||
"django.contrib.contenttypes", | ||
] | ||
|
||
ADMIN_TOOLS_INDEX_DASHBOARD = "fluent_dashboard.dashboard.FluentIndexDashboard" | ||
ADMIN_TOOLS_APP_INDEX_DASHBOARD = "fluent_dashboard.dashboard.FluentAppIndexDashboard" | ||
ADMIN_TOOLS_MENU = "fluent_dashboard.menu.FluentMenu" | ||
|
||
MIDDLEWARE = [ | ||
"django.contrib.sessions.middleware.SessionMiddleware", | ||
"django.contrib.auth.middleware.AuthenticationMiddleware", | ||
"django.contrib.messages.middleware.MessageMiddleware", | ||
"django.middleware.locale.LocaleMiddleware", # / will be redirected to /<locale>/ | ||
] | ||
|
||
TEMPLATES = [ | ||
{ | ||
"BACKEND": "django.template.backends.django.DjangoTemplates", | ||
"DIRS": (), | ||
"OPTIONS": { | ||
"loaders": ( | ||
"django.template.loaders.filesystem.Loader", | ||
"django.template.loaders.app_directories.Loader", | ||
"admin_tools.template_loaders.Loader", | ||
) | ||
}, | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.