|
|
|
|
@ -26,12 +26,26 @@ SECRET_KEY = 'django-insecure-=cldztbc4jg&xl0!x673!*v2_=p$$eu)=7*f#d0#zs$44xx-h^
|
|
|
|
|
# SECURITY WARNING: don't run with debug turned on in production!
|
|
|
|
|
DEBUG = True
|
|
|
|
|
|
|
|
|
|
ALLOWED_HOSTS = ['localhost', '127.0.0.1', '192.168.1.100', 'shop.softwarrior.ru']
|
|
|
|
|
ALLOWED_HOSTS = ['localhost', '127.0.0.1', '192.168.1.100', 'shop-api.softwarrior.ru', 'shop.softwarrior.ru']
|
|
|
|
|
|
|
|
|
|
CORS_ALLOWED_ORIGINS = [
|
|
|
|
|
"https://shop.softwarrior.ru",
|
|
|
|
|
"https://shop-api.softwarrior.ru",
|
|
|
|
|
"http://localhost:5173",
|
|
|
|
|
"http://127.0.0.1:5173",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
CSRF_TRUSTED_ORIGINS = [
|
|
|
|
|
"https://shop.softwarrior.ru",
|
|
|
|
|
"https://shop-api.softwarrior.ru",
|
|
|
|
|
"http://localhost:5173",
|
|
|
|
|
"http://127.0.0.1:5173",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
# Application definition
|
|
|
|
|
|
|
|
|
|
INSTALLED_APPS = [
|
|
|
|
|
'corsheaders',
|
|
|
|
|
'django.contrib.admin',
|
|
|
|
|
'django.contrib.auth',
|
|
|
|
|
'django.contrib.contenttypes',
|
|
|
|
|
@ -42,6 +56,7 @@ INSTALLED_APPS = [
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
MIDDLEWARE = [
|
|
|
|
|
'corsheaders.middleware.CorsMiddleware',
|
|
|
|
|
'django.middleware.security.SecurityMiddleware',
|
|
|
|
|
'django.contrib.sessions.middleware.SessionMiddleware',
|
|
|
|
|
'django.middleware.common.CommonMiddleware',
|
|
|
|
|
|