Unified template names
This commit is contained in:
		@@ -24,10 +24,10 @@ class SignUpView(CreateView):
 | 
			
		||||
    template_name = 'signup.html'
 | 
			
		||||
 | 
			
		||||
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):
 | 
			
		||||
    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):
 | 
			
		||||
    return render(request, 'hello_world.html', {'text':'Hello World!'})
 | 
			
		||||
@@ -41,7 +41,7 @@ class HomeView(View):
 | 
			
		||||
        return render(request, 'home.html', context)
 | 
			
		||||
 | 
			
		||||
class PlaceUpdateView(UpdateView):
 | 
			
		||||
    template_name = 'update_place.html'
 | 
			
		||||
    template_name = 'place/place_update.html'
 | 
			
		||||
    model = Place
 | 
			
		||||
    form_class = PlaceForm
 | 
			
		||||
 | 
			
		||||
@@ -58,7 +58,7 @@ class PlaceCreateView(View):
 | 
			
		||||
            'place_form': place_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):
 | 
			
		||||
        place_form = PlaceForm(request.POST)
 | 
			
		||||
@@ -85,7 +85,7 @@ class PlaceCreateView(View):
 | 
			
		||||
            context = {
 | 
			
		||||
                '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):
 | 
			
		||||
        for image in files:
 | 
			
		||||
@@ -97,7 +97,7 @@ class PlaceCreateView(View):
 | 
			
		||||
            place_image.save()
 | 
			
		||||
 | 
			
		||||
class PlaceDeleteView(DeleteView):
 | 
			
		||||
    template_name = 'delete_place.html'
 | 
			
		||||
    template_name = 'place/place_delete.html'
 | 
			
		||||
    model = Place
 | 
			
		||||
    form_class = PlaceDeleteForm
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user