codehosting - 1.2

Django app for hosting code projects

This django application is intended to assist developers who want to host releases of their own projects, instead of relying on SourceForge. Using the django admin interface, one creates "projects" and "releases" of those projects. Projects may consist of source/binary releases, or may refer to an externally hosted site for web services where code is not released.

Fix the code structure and add sitemaps support.

Latest release: Sun Dec 31 17:50:30 2006

Changelog

2006-12-31 Doug Hellmann <dhellmann@racemi.com>

  • templatetags/codehosting_tags.py (release_history): Limit the

System Message: WARNING/2 (<string>, line 4)

Bullet list ends without a blank line; unexpected unindent.

release history to the 5 most recent releases.

  • views.py (project_detail): Use the new convenience method

System Message: WARNING/2 (<string>, line 7)

Bullet list ends without a blank line; unexpected unindent.

current_release().

  • models.py (Project.current_release): Add a convenience method to

System Message: WARNING/2 (<string>, line 10)

Bullet list ends without a blank line; unexpected unindent.

retrieve the most current release for a given project.

  • sitemaps.py (ProjectSitemap): Add sitemap.xml generation. This

System Message: WARNING/2 (<string>, line 13)

Bullet list ends without a blank line; unexpected unindent.

requires the django.contrib.sitemaps app, but only if you actually want to use it.

  • templates/project_list.html: Update the load tag to pull in the

System Message: WARNING/2 (<string>, line 17)

Bullet list ends without a blank line; unexpected unindent.

template tags.

  • templates/project_detail.html: Update the load tag to pull in

System Message: WARNING/2 (<string>, line 20)

Bullet list ends without a blank line; unexpected unindent.

the template tags.

  • templatetags/codehosting_tags.py: Rename this module to be

System Message: WARNING/2 (<string>, line 23)

Bullet list ends without a blank line; unexpected unindent.

consistent with the app name.

  • templatetags/project_release_tags.py (release_history): Do not

System Message: WARNING/2 (<string>, line 26)

Bullet list ends without a blank line; unexpected unindent.

require a project argument.

  • templates/project_release_history.html: The tag may not get a

System Message: WARNING/2 (<string>, line 29)

Bullet list ends without a blank line; unexpected unindent.

project if the user wants a list of all project releases.

  • templates/project_list_tag.html: Use get_absolute_url to

System Message: WARNING/2 (<string>, line 32)

Bullet list ends without a blank line; unexpected unindent.

generate URLs.

  • templates/project_list.html: Use absolute_url to generate

System Message: WARNING/2 (<string>, line 35)

Bullet list ends without a blank line; unexpected unindent.

links. Use the release_history tag.

  • models.py (Project.get_absolute_url): Use the setting

System Message: WARNING/2 (<string>, line 38)

Bullet list ends without a blank line; unexpected unindent.

CODEHOSTING_URL_PREFIX to tell us how to generate absolute URLs to projects and releases.

Bookmark and Share