Your Ad Here

Tuesday, January 17, 2012

User-specific sites

Hi all,

This is my first post and it's a simple question... (I think)

In my experience, it seems like Django allows users to log in to access and modify the same content, like a blog with multiple authors or a CMS. I'm trying to figure out how to do user-specific sites – something like a blog site where every user has their own blog and they can log in to add, remove, and edit their own posts (and no one else's). Each user has their own preferences and the like as well. Is this something that Django's built-in user framework can handle? Or could I maybe finagle the sites module into doing something like this? Is it as simple as adding a ForeignKey to all my models that points to the User that owns that particular db row (seems like the brute force way of doing it...) or is there a more elegant way?

Thanks for your help.

Eryn

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 comments:

Post a Comment