skip to navigation
skip to content

django-muckraking 0.2

A collection of random Django utilities

Latest Version: 0.3.2

Django Muckraking

A collection of various Django utilities. It includes:


Removes spaces and line breaks between html tags. Leaves <script> blocks intact

An apache-like approach to redirects.

Specify your redirects in like this::

(r'^/about/news-events\.php(.+)?', '/news-events/$1',),
(r'^/about/(?!index\.php)', '/about/',),

Template Context Processors

Add a :code:`{{ DEBUG }}` variable Django templates. The value is a boolean

Standard Template Tags

To use the following tags, add :code:`{% load muckraking_tags %}` to your template.

:code:`{% git_commit_hash %}`
Outputs the commit hash of the HEAD commit in a git repo. Useful for cache-busting strings

Django CMS Template Tags

To use the following tags, add :code:`{% load muckraking_cms_tags %}` to your template.

:code:`{% page_url_by_slug "foobar-page" %}`
Allows you to perform reverse lookups on pages by slug::

Management Commands

Allows you to import a csv file of redirect urls into the redicet app::

./ import_redirects ~/path/to/redirects.csv  
File Type Py Version Uploaded on Size
django-muckraking-0.2.tar.gz (md5) Source 2013-11-21 4KB
  • Downloads (All Versions):
  • 8 downloads in the last day
  • 55 downloads in the last week
  • 270 downloads in the last month