Django show sql query in shell

To show sql query in python manage.py shell, we use this code import logging l = logging.getLogger('django.db.backends') l.setLevel(logging.DEBUG) l. »

Author image Kien Nguyen

Authentication django-tastypie in right way

When using django-tastypie, I got some problems with security. In my pinterest-clone application, I build a pin model. A pin is a image with a description and tags for it`

»

Author image Kien Nguyen

Watch directory change with Python watchdog library

Watchdog is Python API and shell utilities to monitor file system events.

Watchdog come with a tool call watchmedo to call shell command when we get change on a directiory. The “change” include: delete/modify/create a file in directory.

»

Author image Kien Nguyen