Hi, I'm new to django. I'd like to use MongoDB as my backend engine and have installed all the required packages for a MongoDB django setup. However, when I run "python manage.py syncdb", I get this error:
Traceback (most recent call last): File "./manage.py", line 10, in <module> execute_from_command_line(sys.argv) File "/h/lianghon/repo/mywiki/mywiki/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 453, in execute_from_command_line utility.execute() File "/h/lianghon/repo/mywiki/mywiki/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 392, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/h/lianghon/repo/mywiki/mywiki/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 272, in fetch_command klass = load_command_class(app_name, subcommand) File "/h/lianghon/repo/mywiki/mywiki/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 77, in load_command_class module = import_module('%s.management.commands.%s' % (app_name, name)) File "/h/lianghon/repo/mywiki/mywiki/local/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module __import__(name) File "/h/lianghon/repo/mywiki/mywiki/local/lib/python2.7/site-packages/south/management/commands/__init__.py", line 13, in <module> from south.management.commands.syncdb import Command as SyncCommand File "/h/lianghon/repo/mywiki/mywiki/local/lib/python2.7/site-packages/south/management/commands/syncdb.py", line 19, in <module> from south.db import dbs File "/h/lianghon/repo/mywiki/mywiki/local/lib/python2.7/site-packages/south/db/__init__.py", line 84, in <module> db = dbs[DEFAULT_DB_ALIAS] KeyError: 'default' I searched a lot on the Internet on this problem and most answers are like this one: "You don't have correct DATABASES <https://docs.djangoproject.com/en/1.4/ref/settings/#databases> in your settings. There should be a database named 'default'". However, I don't think there is a problem with my settings file which already sets the default database: DATABASES = { 'default': { 'ENGINE': 'django_mongodb_engine', 'NAME': 'wikipedia', } } The Django version I'm using is 1.5.11. Any help would be very much appreciated! Thanks! Lianghong -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/431013a9-5831-4bbf-8b24-477960e641f0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.