django.views.generic.detail SingleObjectMixin Example Code

SingleObjectMixin is a class within the django.views.generic.detail module of the Django project.

Example 1 from django-downloadview

django-downloadview (project documentation and PyPI package information) is a Django extension for serving downloads through your web application. While typically you would use a web server to handle static content, sometimes you need to control file access, such as requiring a user to register before downloading a PDF. In that situations, django-downloadview is a handy library to avoid boilerplate code for common scenarios.

django-downloadview / django_downloadview / views / object.py