Merge branch 'data_feature' of gitea.randerath.eu:johannes/transport-accessibility into data_feature
This commit is contained in:
commit
f2c8d147e5
|
|
@ -43,6 +43,7 @@
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</style>
|
</style>
|
||||||
|
{% load static %}
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="sidebar">
|
<div class="sidebar">
|
||||||
|
|
|
||||||
|
|
@ -52,6 +52,6 @@ def index(request):
|
||||||
timetable = get_timetable(r, trips, stop_sequences)
|
timetable = get_timetable(r, trips, stop_sequences)
|
||||||
except Route.DoesNotExist:
|
except Route.DoesNotExist:
|
||||||
print(f"Invalid request for Route with id {request.GET['timetable']}")
|
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)
|
return render(request,"map.html", context)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,6 @@ from pathlib import Path
|
||||||
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
||||||
BASE_DIR = Path(__file__).resolve().parent.parent
|
BASE_DIR = Path(__file__).resolve().parent.parent
|
||||||
|
|
||||||
|
|
||||||
# Quick-start development settings - unsuitable for production
|
# Quick-start development settings - unsuitable for production
|
||||||
# See https://docs.djangoproject.com/en/5.0/howto/deployment/checklist/
|
# See https://docs.djangoproject.com/en/5.0/howto/deployment/checklist/
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user