cdh.core.js_urls.views module

JS URLs views

This module defines views allowing to expose the Javascript helper and catalog of URLs allowing to provide reverse-like functionality on the client side.

class cdh.core.js_urls.views.JsUrlsView(**kwargs)[source]

Bases: TemplateView

Renders a Javascript helper allowing to reverse Django URLs.

content_type = 'application/javascript'
get_context_data(**kwargs)[source]

Returns the context data to provide to the template.

template_name = 'cdh.core/js_urls.js'