Re: site and username unique together

2009-08-18 Thread Fredde
e. I have > solved this by writing a middleware that parses the url and changes > the settings.SITE_ID based on that. Similar > tohttp://www.djangosnippets.org/snippets/1099/ > > I'm planing to use contrib.auth for user login on each site, but I > want to make the username uni

site and username unique together

2009-08-17 Thread Fredde
this by writing a middleware that parses the url and changes the settings.SITE_ID based on that. Similar to http://www.djangosnippets.org/snippets/1099/ I'm planing to use contrib.auth for user login on each site, but I want to make the username unique together with the site. I tried something like