lostplaces-backend/source/lostplaces/lostplaces_app/views.py

12 lines
311 B
Python
Raw Normal View History

2020-07-26 22:19:37 +02:00
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!'})