Fixed typo and / url.
This commit is contained in:
parent
fc7a847f6d
commit
66404eea87
@ -11,7 +11,7 @@ from .views import (
|
|||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path('hello_world/', hello_world), # You know what this is :P
|
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('signup/', SignUpView.as_view(), name='signup'),
|
||||||
path('place/<int:pk>/', place_detail_view, name='place_detail'),
|
path('place/<int:pk>/', place_detail_view, name='place_detail'),
|
||||||
path('place/create/', PlaceCreateView.as_view(), name='place_create'),
|
path('place/create/', PlaceCreateView.as_view(), name='place_create'),
|
||||||
|
@ -83,7 +83,7 @@ class PlaceCreateView(View):
|
|||||||
}
|
}
|
||||||
return render(request, 'create_place.html', context)
|
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(
|
place_image = PlaceImage.objects.create(
|
||||||
filename=image,
|
filename=image,
|
||||||
place=place,
|
place=place,
|
||||||
|
Loading…
Reference in New Issue
Block a user