Analytics
This package contains views related to the quality-analysis of the content
App Size View
- class integreat_cms.cms.views.analytics.app_size_view.AppSizeView(**kwargs)[source]
Bases:
TemplateView
View to calculate the current size of the content, that’s been send via the API.
- __init__(**kwargs)[source]
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- get_context_data(**kwargs: Any) dict [source]
Extend context by app size
- Parameters:
**kwargs (Any) – The supplied keyword arguments
- Returns:
The context dictionary
- Return type:
- get_template_names()[source]
Return a list of template names to be used for the request. Must return a list. May not be called if render_to_response() is overridden.
- render_to_response(context, **response_kwargs)[source]
Return a response, using the response_class for this view, with a template rendered with the given context.
Pass response_kwargs to the constructor of the response class.
- response_class[source]
alias of
TemplateResponse
- template_name = 'analytics/app_size.html'[source]
The template to render (see
TemplateResponseMixin
)
Translation Coverage View
- class integreat_cms.cms.views.analytics.translation_coverage_view.TranslationCoverageView(**kwargs)[source]
Bases:
TemplateView
View to calculate and show the translation coverage statistics (up to date translations, missing translation, etc)
- __init__(**kwargs)[source]
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- get_context_data(**kwargs: Any) dict[str, Any] [source]
Extend context by translation coverage data
- get_template_names()[source]
Return a list of template names to be used for the request. Must return a list. May not be called if render_to_response() is overridden.
- render_to_response(context, **response_kwargs)[source]
Return a response, using the response_class for this view, with a template rendered with the given context.
Pass response_kwargs to the constructor of the response class.
- response_class[source]
alias of
TemplateResponse
- template_name = 'analytics/translation_coverage.html'[source]
The template to render (see
TemplateResponseMixin
)