v0.0.00.5

This commit is contained in:
r0mchik 2025-06-05 17:51:09 +07:00
parent 7146efe8c6
commit 3cbe01a17d
3 changed files with 8 additions and 5 deletions

View File

@ -1,4 +1,4 @@
SECRET_KEY='django-insecure-dwz6w*m*yl$!))@7v36)u=034$1=41gp9ph5u7!g3x!b0un#)e'
WEBSOCKET_URL='ws://192.168.0.169:8106/ws/stream'
WEBSOCKET_URL='ws://192.168.0.169:8106/ws/stream/'
RTSP_URL='rtsp://192.168.1.247:554/rtsp/streaming?channel=01&subtype=A'
MODEL_PATH='models/colors/detection/v4/med/epochs_60/best.pt'

View File

@ -3,8 +3,8 @@ from django.shortcuts import redirect
import re
EXEMPT_URLS = [
re.compile(settings.LOGIN_URL.lstrip('/')), # eg. 'streaming/login/'
re.compile(r'^admin/login/$'), # админ-логин
re.compile(settings.LOGIN_URL.lstrip('/')),
re.compile(r'^admin/login/$'),
re.compile(r'^streaming/login/$'),
re.compile(r'^streaming/$'),
re.compile(r'^static/'),

View File

@ -31,7 +31,7 @@ SECRET_KEY = os.getenv("SECRET_KEY")
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False
DEBUG = True
ALLOWED_HOSTS = ['*']
@ -87,7 +87,10 @@ TEMPLATES = [
CSRF_COOKIE_SECURE = False
SESSION_COOKIE_SECURE = False
# CSRF_TRUSTED_ORIGINS = ['http://192.168.0.169']
CSRF_TRUSTED_ORIGINS = [
'http://192.168.0.169:82',
'http://192.168.0.169:8106'
]
WSGI_APPLICATION = 'app.wsgi.application'