From 66404eea87a5d5c0060be2440dec16677ba92c9c Mon Sep 17 00:00:00 2001 From: Commander1024 Date: Tue, 4 Aug 2020 22:10:31 +0200 Subject: [PATCH] Fixed typo and / url. --- lostplaces/lostplaces_app/urls.py | 2 +- lostplaces/lostplaces_app/views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lostplaces/lostplaces_app/urls.py b/lostplaces/lostplaces_app/urls.py index feb6737..9fd95f7 100644 --- a/lostplaces/lostplaces_app/urls.py +++ b/lostplaces/lostplaces_app/urls.py @@ -11,7 +11,7 @@ from .views import ( urlpatterns = [ path('hello_world/', hello_world), # You know what this is :P - path('', HomeView.as_view(), name='home'), + path('/', HomeView.as_view(), name='home'), path('signup/', SignUpView.as_view(), name='signup'), path('place//', place_detail_view, name='place_detail'), path('place/create/', PlaceCreateView.as_view(), name='place_create'), diff --git a/lostplaces/lostplaces_app/views.py b/lostplaces/lostplaces_app/views.py index 64062cb..8144e4c 100644 --- a/lostplaces/lostplaces_app/views.py +++ b/lostplaces/lostplaces_app/views.py @@ -83,7 +83,7 @@ class PlaceCreateView(View): } return render(request, 'create_place.html', context) - def _apply_multipart_image_upload(self, files, place, submitter):: + def _apply_multipart_image_upload(self, files, place, submitter): place_image = PlaceImage.objects.create( filename=image, place=place,