common package#

Subpackages#

Submodules#

common.backends module#

class common.backends.TokenBackend#

Bases: ModelBackend

common.context_processors module#

common.middleware module#

common.models module#

common.utils module#

exception common.utils.CommandLineError#

Bases: OSError

When a command ran on the OS fails.

common.utils.lc_sorted(*args, **kwargs)#

Same as the built-in function sorted but according to the current locale.

common.utils.send_mail(subject, message, **kwargs)#

Wrapper to Django’s send_mail allowing all EmailMessage init arguments.

common.utils.trans_sort_object_list(lst, tr_field)#

Sort an object list with translated_name

common.views module#

class common.views.LoginView(**kwargs)#

Bases: LoginView

Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.

form_class#

alias of LoginForm

form_invalid(form)#

If the form is invalid, render the invalid form.

form_valid(form)#

Security check complete. Log the user in.

get_context_data(**kwargs)#

Insert the form into the context dict.

get_redirect_url()#

Return the user-originating redirect URL if it’s safe.

common.views.activate_account(request, key)#

Activate an account through the link a requestor has received by email

common.views.index(request)#

Homepage view

common.views.pull_code(request)#

GitLab Webhook endpoint to update code after a repository push.

Module contents#