Django - Passing variables from a function to another

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

You mister are saved for me so much time! I have been stuck with that for a while...

isitempesisitempes
Автор

Could you make a video on how to setup different Users / User Profiles in Django?

I've found this to be one of the most confusing things to setup properly. Like whether or not to use the Group model, or using some kind of Profile model and keeping things organized and setup correctly.

The questions that come to mind when I think of it are:
1. How do you make sure that only one type of user (like a Customer let's say) is only made from a Customer signup form, versus, idk, something like a Vendor, or like an Author user vs a Subscriber, etc.
2. How do you make sure the forms are consistent as well?
3. How do you make it to users with one type of Profile can access a view while other's cannot unless they have the same type of profile (like a User could be a Customer to access the customer section, a Vendor to access a vendor section, or be both and be able to access both)?

The architecture has confused the crap out of me for so long lol.

zackplauche
Автор

Nice video.. I've been on this for quite sometime now. I'm trying to call the variable of a function inside another.

The request.session["html_name"]

Should be the name of the variable from the front end you want to get right?

ayenidanielibikunle
Автор

suppose a user passes in the url ?phone= 1234.
it will replace the existing one which can cause serious problem .

aaqibwani