auth.models.User.username_validator
  • References/Python/Django/API/contrib packages/django.contrib.auth

username_validator New in Django 1.10. Points

2025-01-10 15:47:30
sites.requests.RequestSite
  • References/Python/Django/API/contrib packages/The “sites” framework

class requests.RequestSite A class that shares the primary interface of Site (i.e., it has domain

2025-01-10 15:47:30
admin.AdminSite.index_template
  • References/Python/Django/API/contrib packages/The Django admin site

AdminSite.index_template Path to a custom template that will be used by the admin site main index view.

2025-01-10 15:47:30
admin.ModelAdmin.save_on_top
  • References/Python/Django/API/contrib packages/The Django admin site

ModelAdmin.save_on_top Set save_on_top to add save buttons across the top of your admin change forms.

2025-01-10 15:47:30
auth.models.Group.name
  • References/Python/Django/API/contrib packages/django.contrib.auth

name Required. 80 characters or fewer. Any characters are permitted. Example: 'Awesome Users'.

2025-01-10 15:47:30
admin.InlineModelAdmin.get_max_num()
  • References/Python/Django/API/contrib packages/The Django admin site

InlineModelAdmin.get_max_num(request, obj=None, **kwargs) Returns the maximum number of extra inline forms to use. By default

2025-01-10 15:47:30
auth.models.User.set_password()
  • References/Python/Django/API/contrib packages/django.contrib.auth

set_password(raw_password) Sets the user’s password to the given raw string, taking care of the password hashing. Doesn’t save

2025-01-10 15:47:30
messages.get_messages()
  • References/Python/Django/API/contrib packages/The messages framework

get_messages(request) [source] In your template, use something like:

2025-01-10 15:47:30
admin.views.decorators.staff_member_required()
  • References/Python/Django/API/contrib packages/The Django admin site

staff_member_required(redirect_field_name='next', login_url='admin:login') [source] This

2025-01-10 15:47:30
admin.InlineModelAdmin.get_extra()
  • References/Python/Django/API/contrib packages/The Django admin site

InlineModelAdmin.get_extra(request, obj=None, **kwargs) Returns the number of extra inline forms to use. By default, returns

2025-01-10 15:47:30