shortcuts.get_object_or_404()
  • References/Python/Django/Guides

get_object_or_404(klass, *args, **kwargs) [source] Calls

2025-01-10 15:47:30
flatpages.models.FlatPage
  • References/Python/Django/API/contrib packages/The flatpages app

class FlatPage Flatpages are represented by a standard Django model, which lives in

2025-01-10 15:47:30
core.files.images.ImageFile.height
  • References/Python/Django/API/File handling/The File object

height Height of the image in pixels.

2025-01-10 15:47:30
db.models.Field.blank
  • References/Python/Django/API/Models/Model field reference

Field.blank If True, the field is allowed to be blank. Default is False. Note

2025-01-10 15:47:30
db.models.Options.verbose_name
  • References/Python/Django/API/Models/Model Meta options

Options.verbose_name A human-readable name for the object, singular:

2025-01-10 15:47:30
db.models.get_transform()
  • References/Python/Django/API/Models/Lookup API reference

get_transform(transform_name) Must return the lookup named transform_name. For instance, by returning self

2025-01-10 15:47:30
db.models.Options.db_table
  • References/Python/Django/API/Models/Model Meta options

Options.db_table The name of the database table to use for the model:

2025-01-10 15:47:30
views.generic.dates.WeekMixin.get_prev_week()
  • References/Python/Django/API/Date-based mixins

get_prev_week(date) Returns a date object containing the first day of the week before the date provided. This function can also

2025-01-10 15:47:30
gis.gdal.Feature.geom_type
  • References/Python/Django/API/GDAL API

geom_type Returns the type of geometry for this feature, as an OGRGeomType object. This will be the same for all

2025-01-10 15:47:30
views.decorators.csrf.csrf_protect()
  • References/Python/Django/API/Cross Site Request Forgery protection

csrf_protect(view) Decorator that provides the protection of CsrfViewMiddleware to a view.

2025-01-10 15:47:30