Module decorators
source code
|
|
| _display_login_form(request,
error_message='') |
source code
|
|
|
|
|
|
|
|
|
|
staff_member_required(view_func)
Decorator for views that checks that the user is logged in and is a
staff member, displaying the login page if necessary. |
source code
|
|
|
|
ERROR_MESSAGE = ugettext_lazy("Please enter a correct username...
|
|
|
LOGIN_FORM_KEY = 'this_is_the_login_form'
|
Imports:
http,
template,
settings,
User,
authenticate,
login,
render_to_response,
ugettext_lazy,
_,
mark_safe,
base64,
datetime,
md5,
pickle
ERROR_MESSAGE
- Value:
ugettext_lazy("Please enter a correct username and password. Note that
both fields are case-sensitive.")
|
|