|
|
@@ -12,6 +12,7 @@ https://docs.djangoproject.com/en/2.2/ref/settings/
|
|
|
|
|
|
import os
|
|
|
|
|
|
+
|
|
|
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
|
|
|
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
|
|
|
|
|
@@ -37,6 +38,7 @@ INSTALLED_APPS = [
|
|
|
'django.contrib.sessions',
|
|
|
'django.contrib.messages',
|
|
|
'django.contrib.staticfiles',
|
|
|
+ 'knowledgebase.apps.KnowledgebaseConfig',
|
|
|
]
|
|
|
|
|
|
MIDDLEWARE = [
|
|
|
@@ -54,7 +56,7 @@ ROOT_URLCONF = 'website.urls'
|
|
|
TEMPLATES = [
|
|
|
{
|
|
|
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
|
|
- 'DIRS': [],
|
|
|
+ 'DIRS': [os.path.join(BASE_DIR, 'templates')],
|
|
|
'APP_DIRS': True,
|
|
|
'OPTIONS': {
|
|
|
'context_processors': [
|
|
|
@@ -62,6 +64,8 @@ TEMPLATES = [
|
|
|
'django.template.context_processors.request',
|
|
|
'django.contrib.auth.context_processors.auth',
|
|
|
'django.contrib.messages.context_processors.messages',
|
|
|
+
|
|
|
+ 'django_settings_export.settings_export',
|
|
|
],
|
|
|
},
|
|
|
},
|
|
|
@@ -105,7 +109,7 @@ AUTH_PASSWORD_VALIDATORS = [
|
|
|
|
|
|
LANGUAGE_CODE = 'en-us'
|
|
|
|
|
|
-TIME_ZONE = 'UTC'
|
|
|
+TIME_ZONE = 'Europe/Amsterdam'
|
|
|
|
|
|
USE_I18N = True
|
|
|
|
|
|
@@ -118,3 +122,14 @@ USE_TZ = True
|
|
|
# https://docs.djangoproject.com/en/2.2/howto/static-files/
|
|
|
|
|
|
STATIC_URL = '/static/'
|
|
|
+
|
|
|
+
|
|
|
+## Settings export
|
|
|
+# https://github.com/jkbrzt/django-settings-export
|
|
|
+
|
|
|
+SETTINGS_EXPORT = [
|
|
|
+ 'INSTALLED_APPS',
|
|
|
+ 'APPLICATION_NAME'
|
|
|
+]
|
|
|
+
|
|
|
+APPLICATION_NAME = 'h0v1n8'
|