This commit is contained in:
Maxim
2025-12-16 22:14:33 +03:00
parent d451ca7d3a
commit 4896d18db7
13 changed files with 132 additions and 9 deletions

View File

@@ -25,7 +25,7 @@ SECRET_KEY = 'django-insecure-a#7v1um&b88$k)2nm7hvxe__o2c(gz=t5%)1)*oaij6u%+i((=
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = []
ALLOWED_HOSTS = ['*']
# Application definition
@@ -76,10 +76,15 @@ WSGI_APPLICATION = 'config.wsgi.application'
# Database
# https://docs.djangoproject.com/en/6.0/ref/settings/#databases
import os
DATA_DIR = BASE_DIR / 'data'
DATA_DIR.mkdir(exist_ok=True)
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': BASE_DIR / 'db.sqlite3',
'NAME': DATA_DIR / 'db.sqlite3',
}
}
@@ -121,8 +126,4 @@ USE_TZ = True
STATIC_URL = 'static/'
# CORS settings
CORS_ALLOWED_ORIGINS = [
"http://localhost:5173",
"http://127.0.0.1:5173",
]
CORS_ALLOW_ALL_ORIGINS = True