Re: [mezzanine-users] How to use wildcard solution to display content

2016-03-13 Thread Derek Adair
Very elegant solution, nginx is a great tool here and this solution should work just fine. However, this is entirely achievable in django using django's middleware to look up an account ID and attach the account object to the view. Here is a detailed article explaining how to do this.

Re: [mezzanine-users] How to use wildcard solution to display content

2016-03-13 Thread Ryne Everett
I think you need to do some url rewriting outside of django. I haven't looked at this solution very closely but maybe it will give you some ideas: http://stackoverflow.com/questions/29938338/django-multi-tenancy. On Sun, Mar 13, 2016 at 5:06 AM, wh4n wrote: > Hello guys, > > I

[mezzanine-users] How to use wildcard solution to display content

2016-03-13 Thread wh4n
Hello guys, I have a problem I don't know how to solve. Mezzanine takes cares of the multi tenancy. But how can I display other content based on subdomain? For example: I have a site called *thomas.example.com* and another site called *andrea.example.com* I want a solution to grab with sort