Why using SQLite as DB engine during tests fails in django?
-
When I switch to mysql everything will work fine as expected .But when I change db to sqlite it throws me errors.
-
Answer:
Are you using South? In the more recent versions it runs migrations during tests unless explicitly disabled in http://settings.py, and some types of migrations that work for most RDBMSes will fail with SQLite. http://south.aeracode.org/docs/unittests.html http://seanhayes.name/2010/01/09/cross-database-incompatibility/
Seán Hayes at Quora Visit the source
Related Q & A:
- How to insert data in db using jsp?Best solution by Yahoo! Answers
- How to Migrate from SQLite DB to MySQL?Best solution by Stack Overflow
- Why can I download attachments using Yahoo Classic Mail, but not using newer Yahoo Mail?Best solution by Yahoo! Answers
- Why my car feels like it wants to shut off when I start the engine it a Ford Focus 2003?Best solution by Yahoo! Answers
- Why should use the search engine?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.