From 87efccf6c9d345781493b2ca4e80c8fd9f898fe9 Mon Sep 17 00:00:00 2001 From: Commander1024 Date: Wed, 12 Aug 2020 19:14:06 +0200 Subject: [PATCH] Finally removed "hello_world". --- lostplaces/lostplaces_app/urls.py | 2 -- lostplaces/lostplaces_app/views.py | 3 --- 2 files changed, 5 deletions(-) diff --git a/lostplaces/lostplaces_app/urls.py b/lostplaces/lostplaces_app/urls.py index f741f29..caeda3a 100644 --- a/lostplaces/lostplaces_app/urls.py +++ b/lostplaces/lostplaces_app/urls.py @@ -1,6 +1,5 @@ from django.urls import path from .views import ( - hello_world, HomeView, place_detail_view, place_list_view, @@ -11,7 +10,6 @@ from .views import ( ) urlpatterns = [ - path('hello_world/', hello_world), # You know what this is :P path('', HomeView.as_view(), name='home'), path('signup/', SignUpView.as_view(), name='signup'), path('place//', place_detail_view, name='place_detail'), diff --git a/lostplaces/lostplaces_app/views.py b/lostplaces/lostplaces_app/views.py index d6e9fa6..0e6bfd2 100644 --- a/lostplaces/lostplaces_app/views.py +++ b/lostplaces/lostplaces_app/views.py @@ -51,9 +51,6 @@ def place_list_view(request,): def place_detail_view(request, 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!'}) - class HomeView(View): def get(self, request, *args, **kwargs): place_list = Place.objects.all().order_by('submitted_when')[:10]