Added static folder

This commit is contained in:
Johannes Randerath 2024-06-11 20:38:46 +02:00
parent 2d33ac8e67
commit 6bf0437303
3 changed files with 2 additions and 2 deletions

View File

@ -38,6 +38,7 @@
overflow-y: auto;
}
</style>
{% load static %}
</head>
<body>
<div class="sidebar">

View File

@ -52,6 +52,6 @@ def index(request):
timetable = get_timetable(r, trips, stop_sequences)
except Route.DoesNotExist:
print(f"Invalid request for Route with id {request.GET['timetable']}")
context = {"data": str(json.dumps({"stops": stops, "routes": routes, "timetable": timetable}))}
context = {"data": json.dumps({"stops": stops, "routes": routes, "timetable": timetable})}
return render(request,"map.html", context)

View File

@ -15,7 +15,6 @@ from pathlib import Path
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/5.0/howto/deployment/checklist/