first ugly version of authenticated backend requests.

needs some refactoring, but it works?
This commit is contained in:
2025-06-30 13:22:27 +02:00
parent d9050b35ba
commit ca378790f1
6 changed files with 52 additions and 2 deletions
+4 -1
View File
@@ -13,6 +13,7 @@ SECRET_KEY = 'oefjei1lwe918Alkfwuf3ionwu-@kt)6m1e)ah$&^_i9y!qffhm-a$#m6+++'
DEBUG = True
ALLOWED_HOSTS = ['*']
CORS_ALLOW_ALL_ORIGINS = True
CURRENT_HOST = 'http://127.0.0.1:8000' # Needs to be set for spotify callback to work.
@@ -26,12 +27,14 @@ INSTALLED_APPS = [
'django.contrib.messages',
'django.contrib.staticfiles',
'django_htmx',
'rest_framework'
'rest_framework',
'corsheaders',
]
MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
"corsheaders.middleware.CorsMiddleware",
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
+1
View File
@@ -4,6 +4,7 @@ pillow
python-dotenv
mozilla-django-oidc
django-htmx
django-cors-headers
celery
djangorestframework
markdown