KeyError raised deep in south code if neither feature djpl-sqlite nor feature djpl-postgres are selected
Closed this issue · 2 comments
henzk commented
from south.db import DEFAULT_DB_ALIAS
File "/home/henne/p/webapps/_ape/venv/local/lib/python2.7/site-packages/south/db/__init__.py", line 85, in <module>
db = dbs[DEFAULT_DB_ALIAS]
KeyError: 'default'
Before b3ee421, it was possible to configure the database in the product context.
I think we should restore that functionality, so django-productline remains usable without requiring other features ... it's an open world...
Beyond that, we should think about a way of presenting a nicer error message here ... it is not apparent from the stack trace whats going on here...
tonimichel commented
Yes, I agree. djpl should introduce DATABASES with sqlite as default.