- Setup a virtual environment.
- Fork the repository for Django Task 13 in JoinCODED’s Github and Clone it.
- Install the packages from the requirements file.
- A model has been created for you called
FavoriteRestaurant
, which you will use to make relationships between users and their favorite restaurants. Take a look at it. - Create a favorite button, in your
restaurant_list
template that makes a request to favorite a restaurant. - The view that will favorite a restaurant has been partially written for you along with the complete URL. Complete the view.
- When you refresh the
restaurant_list
page, you should still be able to see the restaurants that you have favorited. - Create a list view to display only restaurants that you have favorited. The view has been partially written for you along with the complete URL. Complete it.
- Pass the tests
- Push your code
joincoded / task_13 Goto Github PK
View Code? Open in Web Editor NEWDjango Task 13