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

The slug of the project.

By default, this view will only display projects whose status is PUBLIC_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 is PUBLIC_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

The slug of the Project with which this Version is associated.

slug

The version of the Version.

By default, only versions associated with a Project whose status is PUBLIC_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 is PUBLIC_STATUS) Project.