Showing posts with label sqlite. Show all posts
Showing posts with label sqlite. Show all posts

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