Skip to content
lorenyu edited this page Sep 12, 2011 · 1 revision

create a file called "db.py" in the folder configure, and define a "configure" function that takes the DATABASES variable as a parameter. You can do whatever you want to that variable. In my case, the function looks like this:

def configure(DATABASES):
    DATABASES['default'] = {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': 'C:/xampp/htdocs/abootay/db-sqlite/db'
    }
Clone this wiki locally