-
Recent Posts
Recent Comments
- Shawn on Install python PIL ( Python image Library ) on Ubuntu 11.10 Oneiric
- Régis Eduardo Weizenmann Gregol on How to login postgresql access psql from ubuntu user
- Gabriel on Setup Aptana For Python and Django Development with Checker, Tag, Linter
- Artur_G on How to reset postgres password in PostgreSQL Ubuntu 11.10 Oneiric
- django dev on Install python PIL ( Python image Library ) on Ubuntu 11.10 Oneiric
Archives
Categories
Meta
Monthly Archives: March 2012
Setup Logger in Django 1.3 to show warning & error in console development
New guys in Django commonly have a headache to see Logger configuration in settings.py. Sometimes people only want use Logger to print error / warning / debug in server development. Here are how to do that. First, open up your … Continue reading
Example how to rsync and restart services remote server using Fabric
Fabric is great tools in Python which can ease our development. You can start installing it by : 1sudo pip install fabric Let create some example cases here. 1. I have remote server which have port SSH (it a must!) … Continue reading
create simple example JSON REST API in Django 1.3
Creating REST JSON API in Django in pretty easy. I know several django modules like django-tastypie, django piston, etc provide easy ways to build REST API in Django, but at this time, I will show simple example. First, we should … Continue reading
Python Requests Module get Json content into dictionaries
Requests Module is great python module to use urllib2 in easy ways. For instance, let we get some JSON from my Gravatar : 1https://es.gravatar.com/bashlook.json In case you need how to get JSON value using urllib2 : 1234567891011import urllib2 import json … Continue reading
Delete FileField using delete(save=False) in signals post_delete Django
We can’t overwrite delete() for deleting FileField and related files in Django. As we know that : In Django 1.3, when a model is deleted the FileField’s delete() method won’t be called. If you need cleanup of orphaned files, you’ll … Continue reading
Posted in Django
Tagged delete(save=False) filefield django, django signal post_delete
Leave a comment