From b590589324e67bb04382dc86232854a676f5d706 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sat, 3 Oct 2020 23:20:33 +0200 Subject: [PATCH] root: add base template for api --- passbook/api/templates/rest_framework/api.html | 7 +++++++ passbook/root/settings.py | 14 +++++++------- 2 files changed, 14 insertions(+), 7 deletions(-) create mode 100644 passbook/api/templates/rest_framework/api.html diff --git a/passbook/api/templates/rest_framework/api.html b/passbook/api/templates/rest_framework/api.html new file mode 100644 index 000000000..604490afc --- /dev/null +++ b/passbook/api/templates/rest_framework/api.html @@ -0,0 +1,7 @@ +{% extends "rest_framework/base.html" %} + +{% block branding %} + + passbook + +{% endblock %} diff --git a/passbook/root/settings.py b/passbook/root/settings.py index d5a2bf410..63c0d110c 100644 --- a/passbook/root/settings.py +++ b/passbook/root/settings.py @@ -83,13 +83,6 @@ INSTALLED_APPS = [ "django.contrib.messages", "django.contrib.staticfiles", "django.contrib.humanize", - "rest_framework", - "django_filters", - "drf_yasg", - "guardian", - "django_prometheus", - "channels", - "dbbackup", "passbook.admin.apps.PassbookAdminConfig", "passbook.api.apps.PassbookAPIConfig", "passbook.audit.apps.PassbookAuditConfig", @@ -128,6 +121,13 @@ INSTALLED_APPS = [ "passbook.stages.otp_validate.apps.PassbookStageOTPValidateConfig", "passbook.stages.password.apps.PassbookStagePasswordConfig", "passbook.static.apps.PassbookStaticConfig", + "rest_framework", + "django_filters", + "drf_yasg", + "guardian", + "django_prometheus", + "channels", + "dbbackup", ] GUARDIAN_MONKEY_PATCH = False