- Setup a virtual environment.
- Fork the repository.
- Clone the repository you just forked.
- Install the packages from the requirements file.
- In your views.py file, you'll find the following:
- A
list viewhas been partially created for you, complete it:- In your context dictionary, add an empty list with a key called "my_list".
- Add dictionaries/objects in your empty list that contain "restaurant_name" and "food_type" as keys and give them values. Add three restaurants to your list.
- Render the list of objects in the template provided to the view.
- A
detail viewhas been partially created for you, complete it:- In your
contextdictionary, add an empty dictionary/object with a key called "my_object" - The object must have a
restaurant_nameandfood_type. Add your favorite restaurant. - Render the object in the template provided to the view.
- In your
- The URLs for these views have already been provided for you. You do not need to create them.
- Pass the tests (python manage.py test).
- Push your code.
-
Notifications
You must be signed in to change notification settings - Fork 265
JoinCODED/task_03
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
Django Task 03
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published