adding my data

This commit is contained in:
2025-09-06 21:22:24 +00:00
parent 8fd26c9f1f
commit 2be032023d
5 changed files with 10 additions and 47 deletions

View File

@@ -6,11 +6,11 @@ from pathlib import Path
BASE_DIR = Path(__file__).resolve().parent.parent
# Security settings
SECRET_KEY = config('SECRET_KEY', default='your-secret-key-here-change-in-production')
SECRET_KEY = config('SECRET_KEY', default='5vpYXFM1NTW8e8lxZOqfR6OZSKANooMnCdTuHu11rn')
DEBUG = config('DEBUG', default=False, cast=bool)
# ALLOWED_HOSTS - только ваши настоящие домены
allowed_hosts_default = 'yourdomain.com,www.yourdomain.com,localhost,127.0.0.1'
allowed_hosts_default = 'test.byte-mate.xyz,localhost,127.0.0.1'
ALLOWED_HOSTS = config('ALLOWED_HOSTS', default=allowed_hosts_default).split(',')
# Убираем пустые строки и пробелы
@@ -135,8 +135,7 @@ CSRF_TRUSTED_ORIGINS = [
if not DEBUG:
# Add your production domains
CSRF_TRUSTED_ORIGINS.extend([
'https://yourdomain.com',
'https://www.yourdomain.com',
'https://test.byte-mate.xyz',
])
# REST Framework configuration