manage.py not updating database name

Posted by ricree on Stack Overflow See other posts from Stack Overflow or by ricree
Published on 2009-09-02T22:34:08Z Indexed on 2010/04/10 9:03 UTC
Read the original article Hit count: 398

Filed under:

I have a Django application, and I recently changed the name of the database it is supposed to use. However, manage.py doesn't seem to be using the new database.

I've doublechecked the settings.py file, and I've even added a "print settings.DATABASE_NAME" to the manage.py file, and it prints out the correct name, but still connects to the old database.

For example, using ./manage.py dbshell:

NewDB
Password for user : 
Welcome to psql 8.1.11, the PostgreSQL interactive terminal.
OldDB=>

So as far as I can see, it's completely ignoring what's in the settings file.

What could be causing this?

© Stack Overflow or respective owner

Related posts about django