I want create a project where every user can have his own ‘homepage’. So I want to be able to set a template for each user and show it on his home page url. Do I just save the template name in the user profile and pass it to the template loader or is there a better / more secure / more plugable way to do this ?
Share
Sounds like you want to allow user to pick up his/her favorite template and set bunches of preferences such as background image, displaying style and so on? If so, your solution is fine. Actually, you are allowing users to choose among provided (and extendable) set of template, instead of allowing them to totally take control of template to use.
Furthermore, for preference settings, which are only used for each user. You might want to save them in serialized field such as jsonfield or picklefield instead of store them per column. I’m writing an app to ease the editing of such fields.