Skip to main content

Django's useful snippets collection

Project description

django-qwert is django's snippets collection by Alisue
each snippets' has different author so please checkout the link on the each file's comment.
(some code is written by me or couldn't find source url)


sudo pip install django-qwert


git clone git://
sudo pip install django-qwert/

or download repository and copy it to somewhere in PYTHON_PATH


+ Http403 Exception
+ User based exception
+ Thread local (global request)
+ Automatically generate test user on syncdb when DEBUG=True
+ Protect comment post from spam using Akismet
+ Useful templatetags
+ smart_if
+ expr
+ evaluate_tag
+ get_archives
+ get_latest
+ get_links
+ markdown_tags
+ truncateletters
+ urlize_html

+ BeautifulSoup
+ Akismet
+ markdown


Automatically generate test user on syncdb when DEBUG=True
: When it `True` then create test user (username: admin, password: admin) automatically when syncdb is running.
the default value is `True`

Protect comment post from spam using Akismet
: When it `True` then protecting comment post by Akismet feature is enable. the default value is `True`

: When it is setted using Typepad antispam is used for protecting comment

: Required to set for enabling protecting feature.

Project details

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page