Skip to content

Set up sqlite for production use

espenak edited this page Aug 24, 2011 · 3 revisions

This guide assumes you have followed the Download and install Devilry guide.

Create the database

Create an initial SQLite database using:

~$ cd /var/devilry/productionenv/
~$ bin/django_production.py syncdb

Make sure your web server user has write access to the database and the directory containing it (assumes you run the webserver as the http user):

~$ chown http /var/devilry/productionenv/ /var/devilry/productionenv/db.sqlite3
~$ chmod a+rX /var

Update settings

Make sure DATABASES["default"] in settings/settings.py is configured for SQLite, and that any other database config is commented out or removed. The examples have SQLite enabled by default.

Clone this wiki locally