Thursday, June 18, 2015

Using Gravatar in Django project

Found easy way for using gravatar images in django projects, using template tag:

https://en.gravatar.com/site/implement/images/django/

Tuesday, May 5, 2015

Django Classified App

Great and easy to use scaffolding template for you Classified app made using django
DCF - django classified app

Monday, April 20, 2015

django-compressor

Nice and easy way to minify your CSS and JS files in to one with compression options is to use great tools django-compressor

Just provide wrap you CSS or JS files into
{% compress <js/css> %} link to your files here
{% endcompress %}
And thats it!

Friday, January 9, 2015

django-constance

A Django app for storing dynamic settings in pluggable backends (Redis and Django model backend built in) with an integration with the Django admin app.

GitHub Repo

Tuesday, September 9, 2014

Must-have Django packages.

Excellent post by Alberto Granzotto about handy django packages all django developer must know

Thursday, September 4, 2014

Sorl-Thumbnails

Great project for using thumbnails for ImageField in django.
You need only upload images, and Sorl-Thumbnail create all needed sizes for you images when whey need in template.

TIPS: Use latest build from github:
pip install https://github.com/mariocesar/sorl-thumbnail/archive/master.zip


Monday, February 24, 2014

Using request.DELETE in django

If you want to access QueryDict parameters, when using request.method == 'DELETE' you can't access it via request.DELETE as when you use GET or POST.

Instead you should create that Dict yourself:

from django.http import QueryDict
<...>
def my_delete_api(request):
if request.method == 'DELETE':
data = QueryDict(request.body)
                key = data.get('key', None)