Django: Site-Wide URL Prefix?

You manage this when you deploy your application, by correctly setting the WSGIScriptAlias in your Apache configuration (assuming you're using mod_wsgi, which you should be doing). This is passed on to Django, which then automatically prefixes all URL reverse lookups with the correct value. You shouldn't need to do any manual mucking about with prefixes.

To clarify, in other words, ensure the URL mount point used with WSGIScriptAlias in the back end matches the URL that it is mounted at with any front end proxy. As long as they are the same then should all work fine with respect to prefixes. – Graham Dumpleton May 24 '10 at 23:15.

For this purpouse I use URL_PREFIX in settings. Py and add it in each include in urls.py. I also add it at the beginning of MEDIA_URL, for all images/css/js links to work.

But I would also like to hear about some more tricky solution?

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions