Wednesday, December 29, 2010

Run Django with SQLite

In begin with check whether SQLite has been installed in your Ubuntu
sudo apt-get install sqlite

then in settings.py file:
DATABASE_ENGINE = 'sqlite3'
DATABASE_NAME = 'path/to/db'
# the rest of the fields are not used

This trick very useful for development stuff because i.e. with Postgres tests run very slow, and etcetera

Monday, December 27, 2010

Disable Firefox cache

To disable go to about:config page (copy to the address bar of FF) and set network.http.use-cache to false (double click it or right-click and 'Toggle').