Skip to content

Commit dc64b5e

Browse files
committed
chore(passport): code review
1 parent 1c5f3ce commit dc64b5e

24 files changed

Lines changed: 268 additions & 19942 deletions

rootfs/api/settings/production.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
# will be suppressed, and exceptions will propagate upwards
2222
# https://docs.djangoproject.com/en/2.2/ref/settings/#debug-propagate-exceptions
2323
DEBUG_PROPAGATE_EXCEPTIONS = True
24-
24+
# Enable Django admin
25+
ADMIN_ENABLED = bool(os.environ.get('ADMIN_ENABLED', False))
2526
# Silence two security messages around SSL as router takes care of them
2627
# https://docs.djangoproject.com/en/2.2/ref/checks/#security
2728
SILENCED_SYSTEM_CHECKS = [
@@ -52,7 +53,10 @@
5253
TEMPLATES = [
5354
{
5455
'BACKEND': 'django.template.backends.django.DjangoTemplates',
55-
'DIRS': [os.path.join(BASE_DIR, '..', "web", "dist")],
56+
'DIRS': [
57+
os.path.join(BASE_DIR, '..', "web", "dist"),
58+
os.path.join(BASE_DIR, "templates"),
59+
],
5660
'APP_DIRS': True,
5761
'OPTIONS': {
5862
'context_processors': [

0 commit comments

Comments
 (0)