diff --git a/source/lostplaces/lostplaces_app/templates/placeOverview.html b/source/lostplaces/lostplaces_app/templates/placeOverview.html index 7a9b6ff..3b3206f 100644 --- a/source/lostplaces/lostplaces_app/templates/placeOverview.html +++ b/source/lostplaces/lostplaces_app/templates/placeOverview.html @@ -16,7 +16,6 @@
- {{> @headline headline='Map Links'}} Google Maps TIM Online (GER/NRW Only) Open Street Map diff --git a/source/lostplaces/lostplaces_app/urls.py b/source/lostplaces/lostplaces_app/urls.py new file mode 100644 index 0000000..961e7e9 --- /dev/null +++ b/source/lostplaces/lostplaces_app/urls.py @@ -0,0 +1,7 @@ +from django.urls import path +from .views import hello_world, place_detail_view + +urlpatterns = [ + path('hello_world/', hello_world), + path('place//', place_detail_view) +] \ No newline at end of file diff --git a/source/lostplaces/lostplaces_app/views.py b/source/lostplaces/lostplaces_app/views.py new file mode 100644 index 0000000..e27735c --- /dev/null +++ b/source/lostplaces/lostplaces_app/views.py @@ -0,0 +1,11 @@ +from django.shortcuts import render +from .models import Place + +# Create your views here. + +def place_detail_view(request, pk): + return render(request, 'placeOverview.html', {'place':Place.objects.get(pk=pk) +}) + +def hello_world(request): + return render(request, 'hello_world.html', {'text':'Hello World!'})