New Functionalities & Addons

This commit is contained in:
root committed 2026-02-16 19:50:00 +01:00
1 parent 74fe9c7b90
commit 2f1dac4c09
55 files changed
+4415 -316

No files matched your search

+15 -1
View File
@@ -33,6 +33,9 @@ DEBUG = os.getenv('DEBUG') == 'True'
ALLOWED_HOSTS = os.getenv('ALLOWED_HOSTS', 'localhost').split(',')
CSRF_TRUSTED_ORIGINS = os.getenv('CSRF_TRUSTED_ORIGINS', '').split(',')
# JellyFin Application
JELLYFIN_URL = os.getenv('JELLYFIN_URL')
JELLYFIN_API_KEY = os.getenv('JELLYFIN_API_KEY')
# Application definition
@@ -43,11 +46,20 @@ INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'rest_framework',
'gd',
'intern'
'intern',
'gd2',
]
# Sicherheitseinstellung für öffentliche API
REST_FRAMEWORK = {
'DEFAULT_PERMISSION_CLASSES': [
'rest_framework.permissions.DjangoModelPermissionsOrAnonReadOnly',
]
}
MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
@@ -77,6 +89,8 @@ TEMPLATES = [
},
]
WSGI_APPLICATION = 'project.wsgi.application'