-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbase.py
54 lines (45 loc) · 1.33 KB
/
base.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
from open_api_framework.conf.base import * # noqa
from .api import * # noqa
init_sentry()
#
# APPLICATIONS enabled for this project
#
INSTALLED_APPS = INSTALLED_APPS + [
# Project applications.
"openklant.accounts",
"openklant.utils",
"openklant.components.token",
"openklant.components.klantinteracties",
"openklant.components.contactgegevens",
]
# `django.contrib.sites` is installed by Open API Framework by default
# but we don't want to rely on it anymore (e.g. when generating the label for 2FA)
INSTALLED_APPS.remove("django.contrib.sites")
# FIXME should these be part of OAf?
MIDDLEWARE.insert(
MIDDLEWARE.index("django.contrib.auth.middleware.AuthenticationMiddleware") + 1,
"vng_api_common.middleware.AuthMiddleware",
)
MIDDLEWARE = MIDDLEWARE + ["openklant.utils.middleware.APIVersionHeaderMiddleware"]
#
# SECURITY settings
#
CSRF_FAILURE_VIEW = "openklant.accounts.views.csrf_failure"
#
# Custom settings
#
PROJECT_NAME = "Open Klant"
SITE_TITLE = "API dashboard"
##############################
# #
# 3RD PARTY LIBRARY SETTINGS #
# #
##############################
#
# Django-Admin-Index
#
ADMIN_INDEX_SHOW_REMAINING_APPS_TO_SUPERUSERS = True
CSP_EXCLUDE_URL_PREFIXES = (
"/contactgegevens/api/v1/schema/",
"/klantinteracties/api/v1/schema/",
)