Breakdown
- Create your Python final project
- Define the applications that will be needed
- Admin and anonymous user
- Create the applications
- Modify the settings.py file to include the 1. application classes
- Define the view functions that will be needed
- Write the basic structure for each view function that will return a string identifying the view 1. function (i.e. About, Contact, Search, etc.)
- Create the applications urls.py files and define the route (path) for each view function
- Modify the project's urls.py file to include each application's urls.py file
- Confirm that the basic navigation works
App design:
Applications needed Admin
- /admin
- Name: admin
- CRUD available restaurants. Normal User / Name: app-restaurants Search, random, and preferential restaurants etc...
View Functions (Controller)
Admin
- Create
- Read
- Update
- Delete
Normal users
- Read restaurants
- getAll()
- Get random 1. restaurant (from 1. available)
- getRandom()
- Search restaurants
- searchAvailable1. (input)
- Get recommendation
- getRecommended(input)
Templates (views) Admin CRUD restaurants view Normal users Get restaurants view Restaurants results view