Edit Listing View and Template
Follow step-by-step instructions to add the URL and create the view and template of the Edit Listing page.
We'll cover the following...
We’ve learned how to create and view new listings, so let’s learn to edit and delete listings as well.
Edit Listing URL
First we need to add the URL of the Edit Listing page into listings/urls.py.
Press + to interact
path('edit_listing/<edit_id>/', views.edit_listing, name='edit_listing')
Similar to the detail view, we need to include the ID of the listing in the URL, so that we can edit the correct listing.
Edit Listing view
Since we are changing a form, the edit listing view ...