from django.shortcuts import render from django.urls import reverse_lazy from django.views.generic.edit import CreateView from .forms import ExplorerCreationForm from .models import Place # Create your views here. class SignUpView(CreateView): form_class = ExplorerCreationForm success_url = reverse_lazy('login') template_name = 'signup.html' def place_list_view(request,): return render(request, 'placeList.html', {'place_list':Place.objects.all()}) 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!'})