From c341b1dcc7f618cbc49608de89ee14a63ea75b3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Thu, 16 Aug 2018 12:30:11 +0200 Subject: [PATCH] Include the Django Admin docs --- Pipfile | 1 + Pipfile.lock | 11 ++++++++++- mydata/common_settings.py | 1 + mydata/urls.py | 1 + 4 files changed, 13 insertions(+), 1 deletion(-) diff --git a/Pipfile b/Pipfile index 4c936e5..e442973 100644 --- a/Pipfile +++ b/Pipfile @@ -10,6 +10,7 @@ Django = "*" django-debug-toolbar = "*" requests-oauthlib = "*" packaging = "*" +docutils = "*" [dev-packages] responses = "*" diff --git a/Pipfile.lock b/Pipfile.lock index c22a648..5fa0873 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -1,7 +1,7 @@ { "_meta": { "hash": { - "sha256": "bf16ca5f69124b4f0a1a50f8abd815ad70660b87535e35f8a6a41fda508e7670" + "sha256": "d15291f2f58d576101694ea689871e882cbe8637133d0bd1d1cf17246db11027" }, "pipfile-spec": 6, "requires": { @@ -46,6 +46,15 @@ "index": "pypi", "version": "==1.9.1" }, + "docutils": { + "hashes": [ + "sha256:02aec4bd92ab067f6ff27a38a38a41173bf01bed8f89157768c1573f53e474a6", + "sha256:51e64ef2ebfb29cae1faa133b3710143496eca21c530f3f71424d77687764274", + "sha256:7a4bd47eaf6596e1295ecb11361139febe29b084a87bf005bf899f9a42edc3c6" + ], + "index": "pypi", + "version": "==0.14" + }, "idna": { "hashes": [ "sha256:156a6814fb5ac1fc6850fb002e0852d56c0c8d2531923a51032d1b70760e186e", diff --git a/mydata/common_settings.py b/mydata/common_settings.py index db22954..9fbfb5f 100644 --- a/mydata/common_settings.py +++ b/mydata/common_settings.py @@ -12,6 +12,7 @@ STATIC_ROOT = BASE_DIR / 'static' STATICFILES_DIRS = [BASE_DIR / 'webstatic'] INSTALLED_APPS = [ + 'django.contrib.admindocs', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', diff --git a/mydata/urls.py b/mydata/urls.py index 28ad616..3a9013d 100644 --- a/mydata/urls.py +++ b/mydata/urls.py @@ -8,6 +8,7 @@ import mydata_main.views urlpatterns = [ url(r'^', include('mydata_benchmarks.urls')), + path('admin/doc/', include('django.contrib.admindocs.urls')), path('admin/', admin.site.urls), path('oauth/', include('oauth.urls', namespace='oauth')), ] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)