dimanche 20 septembre 2015

How to have specific users see different webpages? Django

So this might be a stupid question, but I was wondering how one would handle a website that, once a user logged in, would be able to show a completely different page to each user?

-Think of a master login/registration page. -Once a user registers, depending on their permissions, they would be redirected to the appropriate page for their user type (whilst not being able to access those of any other type).

So would this be an individual user/group permissions thing (using Django auth to do so)? Or would this be able to be implemented using models (i.e. have models of each type of user account and just hold instances in the database)?

Sorry if this seems strange or idiotic, but this is my first week or so with Django (and web dev), so I am not at all familiar with this stuff.

Thanks for reading and thanks very much for helping!




Aucun commentaire:

Enregistrer un commentaire