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]