Integration with other Django apps

Django Absolute

Django Absolute contribute with the following context variables:

  • ABSOLUTE_ROOT
  • ABSOLUTE_ROOT_URL
  • SITE_ROOT
  • SITE_ROOT_URL

They will be available into Django.context javascript object (nothing new, this the default behavior). But, two more methods will be available:

  • Django.absolute() to reverse an absolute URL based on request
  • Django.site() to reverse an absolute URL based on Django site

If you try to call these methods without django-bsolute installed, a DjangoJsError will be thrown.

Project Versions

Table Of Contents

Previous topic

Javascript test tools

Next topic

Settings

This Page