One-to-many relationship (the opposite of many-to-one)

2009-08-13 Thread Fredde
Hi! I am using the Site app to serve multiple sites with shared content in the same django project. Now I want to be able to assign a owner company for each site to display different copyright info, etc. So what I would like to do is to add a ForeignKey to the site model without having to create

site and username unique together

2009-08-17 Thread Fredde
Hi! I am working on a project with multiple sites and are using the contrib.site app to separate them from eachother. The number of sites will be high and changing often, so I don't want to modify the Apache config and create a new VirtualHost/Location for each new site. I have solved this by wri

Re: site and username unique together

2009-08-18 Thread Fredde
except User.DoesNotExist: return None def get_user(self, user_id): try: return SiteUser.objects.get(pk=user_id) except SiteUser.DoesNotExist: return None /Fredrik On 17 Au