удаление админки, косметические исправления

This commit is contained in:
2024-01-23 19:37:10 +03:00
parent 5dde84ce0a
commit 16320e58c4
7 changed files with 12 additions and 36 deletions

View File

@@ -28,21 +28,20 @@ PROJECT_ROOT = os.path.dirname(__file__)
SECRET_KEY = os.getenv('DJANGO_SECRET')
ALLOWED_HOSTS = ['10.8.0.2', '10.8.0.6', 'ospaz.wawaa.ru', 'dev.ospaz.wawaa.ru']
CSRF_TRUSTED_ORIGINS = ['http://10.8.0.2', 'http://10.8.0.6', 'https://ospaz.wawaa.ru', 'https://dev.ospaz.wawaa.ru']
ALLOWED_HOSTS = ['10.8.0.2', 'ospaz.wawaa.ru']
CSRF_TRUSTED_ORIGINS = ['http://10.8.0.2', 'https://ospaz.wawaa.ru']
DEBUG = int(os.getenv('PROJECT_DEBUG', '0')) != 0
# HTTPS settings https://docs.djangoproject.com/en/5.0/topics/security/
#CSRF_COOKIE_SECURE = True
#SESSION_COOKIE_SECURE = True
#DEBUG = False
# HTTP settings
DEBUG = int(os.getenv('PROJECT_DEBUG', '0')) != 0
if not DEBUG:
CSRF_COOKIE_SECURE = True
SESSION_COOKIE_SECURE = True
# Application definition
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
@@ -52,7 +51,7 @@ INSTALLED_APPS = [
# custom apps
'users.apps.UsersConfig',
'index.apps.IndexConfig',
'logs_service'
'logs_service.apps.LogsServiceConfig'
]
MIDDLEWARE = [