Views for software projects¶
django-project-portfolio provides four built-in views for displaying information about software projects. Though not all possible views of the data are included here, the built-in views strive to cover the common cases.
-
class
projects.views.
ProjectDetail
¶ Subclass of Django’s generic DetailView.
Detail view of a
Project
. Has one required argument which must be captured in the URL:slug
Theslug
of the project.By default, this view will only display projects whose
status
isPUBLIC_STATUS
.
-
class
projects.views.
ProjectList
¶ Subclass of Django’s generic ListView.
List of
Project
instances.By default, this view will only display projects whose
status
isPUBLIC_STATUS
.
-
class
projects.views.
VersionDetail
¶ Subclass of Django’s generic DetailView.
Detail view of a
Version
. Has two required arguments which must be captured in the URL:project_slug
slug
Theversion
of theVersion
.By default, only versions associated with a
Project
whosestatus
isPUBLIC_STATUS
can be displayed.
-
class
projects.views.
LatestVersionList
¶ Subclass of
django.views.generic.ListView
.List of the latest
Version
of each public (i.e.,status
isPUBLIC_STATUS
)Project
.