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:slugTheslugof the project.By default, this view will only display projects whose
statusisPUBLIC_STATUS.
-
class
projects.views.ProjectList¶ Subclass of Django’s generic ListView.
List of
Projectinstances.By default, this view will only display projects whose
statusisPUBLIC_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_slugslugTheversionof theVersion.By default, only versions associated with a
ProjectwhosestatusisPUBLIC_STATUScan be displayed.
-
class
projects.views.LatestVersionList¶ Subclass of
django.views.generic.ListView.List of the latest
Versionof each public (i.e.,statusisPUBLIC_STATUS)Project.