I haven’t found any documentation or tutorials on this topic, haven’t received any answers on the IRC channel either so it makes me think I’m looking for the wrong thing. Anyway, resorting to SO after several hours of searching. I’ll try to describe what I’m after by example:
- I want to create a web application where user could create an account (this part is rather clear
- After logging in, user would be able to store his favorite meals
- When a user is logged in, he would see a list of his favorite meals and he could edit them
I understand how user can create account and log in. But everything after that is kind of blurry.
After user logs in, let’s say he would be presented with a form he could fill in and save. How should the database (models) be designed to handle this? Would each user get his own table? How to retrieve the user stored data (i.e. favorite foods) from the database?
These are the things I’m trying to figure out while learning django/programming in general. As I said I haven’t found it described in any books, docs or tutorials I went through.
I would appreciate if you could point me to the right direction. I feel like I’m missing something here.
Basic stuff:
The rest you can get pretty straight forward from the tutorial.
For example: