This commit is contained in:
zakhy 2025-04-08 13:43:22 +07:00
parent d6127000db
commit 954246db0c
2 changed files with 5 additions and 3 deletions

View File

@ -160,7 +160,7 @@
function VlocationStyleFunction(feature, resolution) {
return new ol.style.Style({
image: new ol.style.Icon({
src: '/static/img/worker.png',
src: '{% static 'img/worker.png' %}',
width: 25,
height: 30
})
@ -170,7 +170,7 @@
function BaseStationStyleFunction(feature, resolution) {
return new ol.style.Style({
image: new ol.style.Icon({
src: '/static/img/base-station.png',
src: '{% static 'img/base-station.png' %}',
width: 50,
height: 40
})

View File

@ -2,6 +2,8 @@ import os
import zoneinfo
from pathlib import Path
from django.conf import settings
BASE_DIR = Path(__file__).resolve().parent.parent.parent
ALLOWED_HOSTS = ["*"]
@ -84,4 +86,4 @@ SESSION_COOKIE_NAME = "mfss_pos_session"
CSRF_TRUSTED_ORIGINS = ["http://192.168.10.3:8095", "http://0.0.0.0:8000"]
FORCE_SCRIPT_NAME = "/mfss-positioning"
FORCE_SCRIPT_NAME = "/mfss-positioning" if settings.DEBUG else None