Comment 1 for bug 766096

Revision history for this message
Gabriel Hurley (gabriel-hurley) wrote :

A couple notes:

  * "/media" being hardcoded is fixed in https://github.com/4P/openstack-dashboard/commit/333acaffee6d7992afd1a3bef81f5d2e36036464

  * Links to the "/" should be replaced by a proper django url template tag with a named pattern for "home" or something of the sort. However, this is complicated by the fact that the root URL isn't defined in the dashboard URLconf right now, so it's up to the project (e.g. openstack-dashboard or any other replacement) to include that named pattern in its URLconf, and the site will break loudly if people forget to include it.

  * In general, deploying a Django site at a subdirectory isn't as simple as it ought to be. It requires adding a prefix to *all* URL patterns in the project, and changing a number of settings. Take a look at the (now slightly dated) example here: http://djangosnippets.org/snippets/2136/