In views of both foods and orders complete all views.
This means:
They must render their own template located in /BASE_DIR/src/templates/APP_NAME/URL_NAME.html
They must have context (even if empty)
If the view is details then it must receive an id in it's parameters (you must add the id if not implemented in urls.py). Send the given model instance with given id as context, giving the context key same as the model
if the view is list then sends all objects of the model to context with key of plural model name
Also add the urls/views/templates for category_details in foods app, cart in the orders app
This means:
add url of it and connect it to its view
give the url a name
views must render their corresponding template
template must be placed in it's own app and have the same name that you gave the url
In views of both
foods
andorders
complete all views. This means:/BASE_DIR/src/templates/APP_NAME/URL_NAME.html
details
then it must receive an id in it's parameters (you must add the id if not implemented inurls.py
). Send the given model instance with given id as context, giving the context key same as the modelAlso add the urls/views/templates for
category_details
in foods app,cart
in the orders app This means: