Re: Different URLCONF for different domains

2014-03-12 Thread Russell Keith-Magee
On Wed, Mar 12, 2014 at 4:57 PM, Guy Tamir wrote: > Hey all, > > I have a Django app that serves to multiple domains. > In the primary domain (lets call it primary.com) I have some page that > are server via the path - primary.com/a/ > I want users from another domain (lets call it secondary.com)

Re: Different URLCONF for different domains

2014-03-12 Thread Guy Tamir
Hey, I'm aware of what your saying but I'd I like to reconfigure in a way similar to django-subdomains only instead of specifying the sub domain I'll specify the domain.. Is there a good hack you can think of that can help me in this case? O

Re: Different URLCONF for different domains

2014-03-12 Thread Shawn Milochik
URLs will be processed in the order they appear in your urls.py file. If one of your first entries in urls.py is an "include" that handles all URLs that start with "/a/", then all those requests will be handled by the URL patterns in the included URLs.py. Then, all URLs that don't get "caught" by

Different URLCONF for different domains

2014-03-12 Thread Guy Tamir
Hey all, I have a Django app that serves to multiple domains. In the primary domain (lets call it primary.com) I have some page that are server via the path - primary.com/a/ I want users from another domain (lets call it secondary.com) to be able to get to this path : primary.com/a/ by entering