« Previous | Next » 

Revision e5341ac5

IDe5341ac56b973f444df55f2ba4dcaeefb225232d

Added by Georgios D. Tsoukalas almost 11 years ago

support configurable <SERVICE>_BASE_URL settings

Introduce <SERVICE>_BASE_URL settings for all services.
Extract the path in these URLs as a prefix to be consumed
by the top-level url pattern configuration for each service.

This makes Django know the real (complete) URLs of each view,
so that reverse(viewname) is always correct.

Also, the application itself may use <SERVICE>_BASE_URL on its own to
create links to views, but note that BASE_URL + reverse(viewname)
includes the path prefix twice.

This configuration REQUIRES that any rewriting and proxying on the
front-end must eventually result in the application server (gunicorn)
getting the original path of the request, otherwise the view-generated
URLs will be different.

Changes:
- set top-level urlpatterns from <SERVICE>_BASE_URL
- rename setting: APP_INSTALL_URL to CYCLADES_BASE_URL
- rename setting: ASTAKOS_URL to ASTAKOS_BASE_URL everywhere
- introduce setting: PITHOS_BASE_URL
- update shipped .confs, quick install admin guide, upgrade guide
- fix urls/views/reverse()/other that were broken

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences