adding my data
This commit is contained in:
@@ -35,7 +35,7 @@ class SystemSettings(models.Model):
|
||||
settings, created = cls.objects.get_or_create(
|
||||
pk=1,
|
||||
defaults={
|
||||
'access_password_hash': make_password('admin123'),
|
||||
'access_password_hash': g('admin123'),
|
||||
'is_active': True
|
||||
}
|
||||
)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user