Hi all,

I am trying to use two database for my django(Django nonrel 1.3.1)
project. One is Postgres and other is MongoDB.
After filling in details in settings.py :

DATABASES = {
    'default': {
        'ENGINE': 'django_mongodb_engine', # Add
'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
        'NAME': 'Mongo_MSTR',                      # Or path to
database file if using sqlite3.
        'USER': '',                      # Not used with sqlite3.
        'PASSWORD': '',                  # Not used with sqlite3.
        'HOST': '',                      # Set to empty string for
localhost. Not used with sqlite3.
        'PORT': '',                      # Set to empty string for
default. Not used with sqlite3.
    },
    'geodata': {
        'ENGINE': 'django.contrib.gis.db.backends.postgis', # Add
'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
        'NAME': 'mydatabase',                      # Or path to
database file if using sqlite3.
        'USER': 'Username',                      # Not used with sqlite3.
        'PASSWORD': 'Password',                  # Not used with sqlite3.
        'HOST': '',                      # Set to empty string for
localhost. Not used with sqlite3.
        'PORT': '',                      # Set to empty string for
default. Not used with sqlite3.

}
}

Now if I am doing a
$ Python manage.py syncdb --database=geodata

I am getting a error like this :
django.db.utils.DatabaseError: Ordering can't span tables on
non-relational backends

If however I am executing the above without postgres service started,
I will get a error related to Postgres.
If I am explicitly mentioning the RDMS why is it throwing me error
based on MongoDB?

What am I missing here? Any pointers or documents will be of great help.


-------------
Regards
Subhodip Biswas


GPG key : FAEA34AB
Server : pgp.mit.edu
http://subhodipbiswas.wordpress.com

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to