Project Solution: Updating Songs
Let's review the solution for how to update songs in the database.
Solution
B ÃK ^ ã @ s d S )N© r r r úS/Users/wasifibrahim/Documents/new_project/django_project/django_project/__init__.pyÚ<module> ó
Explanation
We made the following modifications to the project in order to implement the updating feature:
zing_it/forms.py
file
- At lines #18 to #23, we made an
Edit
form. This form is aModelForm
corresponding to theSong
model. We discussed model forms previously in the Model Form lesson.
zing_it/urls.py
file
- At