Unified template names
This commit is contained in:
		@@ -24,10 +24,10 @@ class SignUpView(CreateView):
 | 
				
			|||||||
    template_name = 'signup.html'
 | 
					    template_name = 'signup.html'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def place_list_view(request,):
 | 
					def place_list_view(request,):
 | 
				
			||||||
    return render(request, 'placeList.html', {'place_list':Place.objects.all()})
 | 
					    return render(request, 'place/place_list.html', {'place_list':Place.objects.all()})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def place_detail_view(request, pk):
 | 
					def place_detail_view(request, pk):
 | 
				
			||||||
    return render(request, 'placeOverview.html', {'place':Place.objects.get(pk=pk)})
 | 
					    return render(request, 'place/place_detail.html', {'place':Place.objects.get(pk=pk)})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def hello_world(request):
 | 
					def hello_world(request):
 | 
				
			||||||
    return render(request, 'hello_world.html', {'text':'Hello World!'})
 | 
					    return render(request, 'hello_world.html', {'text':'Hello World!'})
 | 
				
			||||||
@@ -41,7 +41,7 @@ class HomeView(View):
 | 
				
			|||||||
        return render(request, 'home.html', context)
 | 
					        return render(request, 'home.html', context)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class PlaceUpdateView(UpdateView):
 | 
					class PlaceUpdateView(UpdateView):
 | 
				
			||||||
    template_name = 'update_place.html'
 | 
					    template_name = 'place/place_update.html'
 | 
				
			||||||
    model = Place
 | 
					    model = Place
 | 
				
			||||||
    form_class = PlaceForm
 | 
					    form_class = PlaceForm
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -58,7 +58,7 @@ class PlaceCreateView(View):
 | 
				
			|||||||
            'place_form': place_form,
 | 
					            'place_form': place_form,
 | 
				
			||||||
            'place_image_form': place_image_form
 | 
					            'place_image_form': place_image_form
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        return render(request, 'create_place.html', context)
 | 
					        return render(request, 'place/place_create.html', context)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def post(self, request, *args, **kwargs):
 | 
					    def post(self, request, *args, **kwargs):
 | 
				
			||||||
        place_form = PlaceForm(request.POST)
 | 
					        place_form = PlaceForm(request.POST)
 | 
				
			||||||
@@ -85,7 +85,7 @@ class PlaceCreateView(View):
 | 
				
			|||||||
            context = {
 | 
					            context = {
 | 
				
			||||||
                'form': form_place
 | 
					                'form': form_place
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            return render(request, 'create_place.html', context)
 | 
					            return render(request, 'place/place_create.html', context)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def _apply_multipart_image_upload(self, files, place, submitter):
 | 
					    def _apply_multipart_image_upload(self, files, place, submitter):
 | 
				
			||||||
        for image in files:
 | 
					        for image in files:
 | 
				
			||||||
@@ -97,7 +97,7 @@ class PlaceCreateView(View):
 | 
				
			|||||||
            place_image.save()
 | 
					            place_image.save()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class PlaceDeleteView(DeleteView):
 | 
					class PlaceDeleteView(DeleteView):
 | 
				
			||||||
    template_name = 'delete_place.html'
 | 
					    template_name = 'place/place_delete.html'
 | 
				
			||||||
    model = Place
 | 
					    model = Place
 | 
				
			||||||
    form_class = PlaceDeleteForm
 | 
					    form_class = PlaceDeleteForm
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user