When I run Django on Dreamhost using SQLite, why do I get an OperationalError telling me that a tabl
Posted
by Paul D. Waite
on Stack Overflow
See other posts from Stack Overflow
or by Paul D. Waite
Published on 2010-04-01T01:57:51Z
Indexed on
2010/04/01
2:03 UTC
Read the original article
Hit count: 351
I had a Django site running on Dreamhost. Although I used SQLite when developing locally, I initially used MySQL on Dreamhost, because that’s what the wiki page said to do, and because if I’m using an ORM, I might as well take advantage of it by running against a different database.
After a while, I switched the settings on the server to use SQLite, to make it easier to keep my development database in sync with the server one. python manage.py syncdb
worked on the server, but when I tried to access the site, I got an OperationalError
. The Django error page said that one of my tables didn’t exist.
I checked the database using sqlite on the command line on the server, and using python manage.py shell
, and both worked fine.
© Stack Overflow or respective owner