admin.AdminSite.register()
  • References/Python/Django/API/contrib packages/The Django admin site

AdminSite.register(model_or_iterable, admin_class=None, **options) [source] Registers the

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

ModelAdmin.list_editable Set list_editable to a list of field names on the model which will allow editing on the

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

LogEntry.get_change_message() New in Django 1.10.

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

add_message(request, level, message, extra_tags='', fail_silently=False) [source]

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

InlineModelAdmin.max_num This controls the maximum number of forms to show in the inline. This doesn’t directly correlate to

2025-01-10 15:47:30
django.contrib.postgres
  • References/Python/Django/API/contrib packages/django.contrib.postgres

PostgreSQL has a number of features which are not shared by the other databases Django supports. This optional module contains model fields and form fields for a number of

2025-01-10 15:47:30
contenttypes.models.ContentTypeManager.get_for_models()
  • References/Python/Django/API/contrib packages/The contenttypes framework

get_for_models(*models, for_concrete_models=True) Takes a variadic number of model classes, and returns a dictionary mapping

2025-01-10 15:47:30
sitemaps.Sitemap.location
  • References/Python/Django/API/contrib packages/The sitemap framework

location [source] Optional. Either a method or attribute.

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

email Optional. Email address.

2025-01-10 15:47:30
staticfiles.views.serve()
  • References/Python/Django/API/contrib packages/The staticfiles app

views.serve(request, path) This view function serves static files in development.

2025-01-10 15:47:30