Srini's Point of View

My thoughts on technology, food and other fancies…

How to Reset Django’s admin password

I was working on a django application and because of getting busy at work and home, the project took a backseat. After getting back to the project, I realized I don’t remember what was the username/password I used to create the admin account.

Here is what I did …

Syntax Checking your python script without running it

This is a neat little trick to test your python code on the command line without running the script.

$ python -m py_compile yourpythonscript.py

All that command does is compile your python script and create a .pyc file. If there are any errors, you will see the errors be spit …

Read Video files metadata in python using hachoir-metadata

The only module out there for reading video files metadata I could find is hachoir-metadata. Actually you can extract metadata from multimedia files like images, audio files and video files. it also works on different types of archives. I tested it against all kinds of files and it does a …