root: add base template for api

This commit is contained in:
Jens Langhammer 2020-10-03 23:20:33 +02:00
parent 9fb1ac98ec
commit b590589324
2 changed files with 14 additions and 7 deletions

View File

@ -0,0 +1,7 @@
{% extends "rest_framework/base.html" %}
{% block branding %}
<span class='navbar-brand'>
passbook
</span>
{% endblock %}

View File

@ -83,13 +83,6 @@ INSTALLED_APPS = [
"django.contrib.messages", "django.contrib.messages",
"django.contrib.staticfiles", "django.contrib.staticfiles",
"django.contrib.humanize", "django.contrib.humanize",
"rest_framework",
"django_filters",
"drf_yasg",
"guardian",
"django_prometheus",
"channels",
"dbbackup",
"passbook.admin.apps.PassbookAdminConfig", "passbook.admin.apps.PassbookAdminConfig",
"passbook.api.apps.PassbookAPIConfig", "passbook.api.apps.PassbookAPIConfig",
"passbook.audit.apps.PassbookAuditConfig", "passbook.audit.apps.PassbookAuditConfig",
@ -128,6 +121,13 @@ INSTALLED_APPS = [
"passbook.stages.otp_validate.apps.PassbookStageOTPValidateConfig", "passbook.stages.otp_validate.apps.PassbookStageOTPValidateConfig",
"passbook.stages.password.apps.PassbookStagePasswordConfig", "passbook.stages.password.apps.PassbookStagePasswordConfig",
"passbook.static.apps.PassbookStaticConfig", "passbook.static.apps.PassbookStaticConfig",
"rest_framework",
"django_filters",
"drf_yasg",
"guardian",
"django_prometheus",
"channels",
"dbbackup",
] ]
GUARDIAN_MONKEY_PATCH = False GUARDIAN_MONKEY_PATCH = False