Django¶
Django app config¶
Django app config for the Translucent app.
- class confirm.translucent.django.apps.TranslucentConfig(app_name, app_module)¶
Translucent’s Django app config which makes Translucent’s static files and form templates available the the Django project.
Hint
To use the
confirm.translucentPython module as Django app, simply configure your Django project to use this config by adding the following entry to theINSTALLED_APPSlist:INSTALLED_APPS = [ # existing apps… 'confirm.translucent.django.TranslucentConfig', ]
Django forms¶
Translucent’s Django Forms.
- class confirm.translucent.django.forms.TranslucentForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None, bound_field_class=None)¶
A Django
Formwhich renders Translucent-compatible markup.- property media¶
Return all media required to render the widgets on this form.
- class confirm.translucent.django.forms.TranslucentLoginForm(request=None, *args, **kwargs)¶
A Django
ModelFormwhich renders Translucent-compatible markup.- property media¶
Return all media required to render the widgets on this form.
- class confirm.translucent.django.forms.TranslucentModelForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, instance=None, use_required_attribute=None, renderer=None)¶
A Django
ModelFormwhich renders Translucent-compatible markup.- property media¶
Return all media required to render the widgets on this form.
Django context processors¶
Site template context processors.
- confirm.translucent.django.template.context_processors.translucent(request)¶
Retreives the values required for translucent and adds them to the template context.
- Parameters:
request (django.http.HttpRequest) – The HTTP request
- Returns:
The translucent template context
- Return type:
dict