Did a few searches but couldn't find anything good about this problem.
I've got the following setup. / (index), /blog/ and /about/. The way I do want it to be displayed, running only one Django instance is blog.domain.com (for my blog app) and all the other urls to run under (www.)domain.com/.
I could surely hardcode the links, forcing this setup (basically the webserver will listen to blog.domain.com and do a forward as domain.com/blog/ but the user will still see blog.domain.com) but I want to be able to resolve my url-configs the proper way but still get them to point to domain.com or blog.domain.com depending on the url (app) being resolved.
Is there a good way of doing this? I was thinking of a custom templatetag to use instead of {% url my_resolve_name slug="test" as test %}
.