удаление админки, косметические исправления
This commit is contained in:
@@ -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 = [
|
||||
|
@@ -14,14 +14,11 @@ Including another URLconf
|
||||
1. Import the include() function: from django.urls import include, path
|
||||
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
|
||||
"""
|
||||
from django.contrib import admin
|
||||
from django.urls import path, include
|
||||
from django.contrib.staticfiles.views import serve
|
||||
|
||||
|
||||
urlpatterns = [
|
||||
path('', include('index.urls')),
|
||||
path('account/', include('users.urls')),
|
||||
path('fetch/', include('logs_service.urls')),
|
||||
path('admin/', admin.site.urls),
|
||||
path('fetch/', include('logs_service.urls'))
|
||||
]
|
||||
|
Reference in New Issue
Block a user