From 7628eb20088c334555c244ea3261fee9ea7daeea Mon Sep 17 00:00:00 2001 From: andis Date: Sun, 7 Jun 2020 10:16:12 +0000 Subject: [PATCH] standard documentation --- fet2020/fet2020/settings.py | 1 + fet2020/fet2020/urls.py | 1 + fet2020/requirements.txt | 1 + 3 files changed, 3 insertions(+) diff --git a/fet2020/fet2020/settings.py b/fet2020/fet2020/settings.py index 32a163da..ca8321cc 100644 --- a/fet2020/fet2020/settings.py +++ b/fet2020/fet2020/settings.py @@ -45,6 +45,7 @@ INSTALLED_APPS = [ 'rest_framework', 'django_filters', 'django_static_jquery_ui', + 'django.contrib.admindocs' ] MIDDLEWARE = [ diff --git a/fet2020/fet2020/urls.py b/fet2020/fet2020/urls.py index 32da436e..bd8395f9 100644 --- a/fet2020/fet2020/urls.py +++ b/fet2020/fet2020/urls.py @@ -26,6 +26,7 @@ router.register(r'posts', PostViewSet) urlpatterns = [ path('posts/',include('posts.urls')), + path('admin/doc/', include('django.contrib.admindocs.urls')), path('admin/', admin.site.urls), path('', views.index, name='home'), path('index.html', views.index, name='home'), diff --git a/fet2020/requirements.txt b/fet2020/requirements.txt index c782ac3f..cae05159 100644 --- a/fet2020/requirements.txt +++ b/fet2020/requirements.txt @@ -4,3 +4,4 @@ django-ckeditor Pillow djangorestframework django-static-jquery-ui +docutils \ No newline at end of file