Pull requests

#86 Declined
Repository
multmeio multmeio
Branch
default
Repository
andrewgodwin andrewgodwin
Branch
default

fixing the KeyError: 'default' when ./manager.py syncdb/shell/schemamigration/migrate/....

Author
  1. Luís Antônio Araújo Brito avatarLuís Antônio Araújo Brito
Reviewers
Description

When add south to INSTALLED_APPS and try it, on shell, syncdb, schemamigration, .... the traceback [2] bellow is raise. I found this hack at pastebin [1] and applied..

ENV: Django==1.4.1, South==0.7.6, PostgreSQL9.2 w/ hstore

1 - http://pastebin.com/M3xhiG6M

2 - (env2zambe)caitifbrito:zambe luis$ ./manage.py syncdb .... packages/south/management/commands/syncdb.py", line 17, in <module> from south.db import dbs File "/....../lib/python2.7/site-packages/south/db/init.py", line 81, in <module> db = dbs[DEFAULT_DB_ALIAS] KeyError: 'default'

Comments (0)

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.