In Mezzanine there are two different URLs that you could use depending what content you want to be displayed. Is there a way to check inside the urls.py if the active domain is on a subdomain or just the "regular" domain?
This is the two different styles:
url('^$', direct_to_template, {'template': 'index.html'}, name='home'),
url('^$', mezzanine.blog.views.blog_post_list, name='home'),
I haven't found a solid way for this yet. I want to display blog_post_list if I am on a subdomain (wildcard / e.g. sub.example.com) and index.html if I am on the "main" domain (e.g. example.com)