Added static folder
This commit is contained in:
parent
2d33ac8e67
commit
6bf0437303
|
|
@ -38,6 +38,7 @@
|
|||
overflow-y: auto;
|
||||
}
|
||||
</style>
|
||||
{% load static %}
|
||||
</head>
|
||||
<body>
|
||||
<div class="sidebar">
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
|
|
@ -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/
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user