Note that there are some explanatory texts on larger screens.

plurals
  1. POWhat's the error in my project?
    text
    copied!<p>I'm using mongodb for my python(2.7) project with django framework..when i give python manage.py runserver it will work but if i sync the db (python manage.py syncdb) the following error displayed in terminal</p> <pre><code>Creating tables ... Traceback (most recent call last): File "manage.py", line 14, in &lt;module&gt; execute_manager(settings) File "/usr/lib/pymodules/python2.7/django/core/management/__init__.py", line 438, in execute_manager utility.execute() File "/usr/lib/pymodules/python2.7/django/core/management/__init__.py", line 379, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/lib/pymodules/python2.7/django/core/management/base.py", line 191, in run_from_argv self.execute(*args, **options.__dict__) File "/usr/lib/pymodules/python2.7/django/core/management/base.py", line 220, in execute output = self.handle(*args, **options) File "/usr/lib/pymodules/python2.7/django/core/management/base.py", line 351, in handle return self.handle_noargs(**options) File "/usr/lib/pymodules/python2.7/django/core/management/commands/syncdb.py", line 109, in handle_noargs emit_post_sync_signal(created_models, verbosity, interactive, db) File "/usr/lib/pymodules/python2.7/django/core/management/sql.py", line 190, in emit_post_sync_signal interactive=interactive, db=db) File "/usr/lib/pymodules/python2.7/django/dispatch/dispatcher.py", line 172, in send response = receiver(signal=self, sender=sender, **named) File "/usr/lib/pymodules/python2.7/django/contrib/auth/management/__init__.py", line 41, in create_permissions "content_type", "codename" File "/usr/lib/pymodules/python2.7/django/db/models/query.py", line 107, in _result_iter self._fill_cache() File "/usr/lib/pymodules/python2.7/django/db/models/query.py", line 772, in _fill_cache self._result_cache.append(self._iter.next()) File "/usr/lib/pymodules/python2.7/django/db/models/query.py", line 959, in iterator for row in self.query.get_compiler(self.db).results_iter(): File "/usr/local/lib/python2.7/dist-packages/djangotoolbox/db/basecompiler.py", line 229, in results_iter for entity in self.build_query(fields).fetch(low_mark, high_mark): File "/usr/local/lib/python2.7/dist-packages/djangotoolbox/db/basecompiler.py", line 290, in build_query query.order_by(self._get_ordering()) File "/usr/local/lib/python2.7/dist-packages/djangotoolbox/db/basecompiler.py", line 339, in _get_ordering raise DatabaseError("Ordering can't span tables on non-relational backends (%s)" % order) </code></pre> <p>and</p> <pre><code>django.db.utils.DatabaseError: Ordering can't span tables on non-relational backends (content_type__app_label) </code></pre> <p>How to solve this problem?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload