Artem Nesterenko
Artem Nesterenko
Hi @mongkok! ```python from django.contrib.gis.db import models from graphene import Interface, NonNull, String, Node import graphql_geojson class MyModel(models.Model): name = models.CharField(max_length=32, blank=False, null=False) location = models.MultiPolygonField(blank=True, null=True) class Searchable(Interface): display_name...
Any update on this?
@rajat45mishra I'm facing the same issue
> @artemnesterenko You can't use mptt module with mongodb you have to write a database router for switching SQL and nosql database . You can find examples of database routers...
When I run tests with an empty test db, I get: ```python Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/djongo/sql2mongo/query.py", line 806, in parse return handler(self, statement) File "/usr/local/lib/python3.7/site-packages/djongo/sql2mongo/query.py", line 869,...
> Or try version 1.2.31 ```python Creating test database for alias 'mongo'... Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/djongo/sql2mongo/query.py", line 769, in parse return handler(self, statement) File "/usr/local/lib/python3.7/site-packages/djongo/sql2mongo/query.py", line 894,...
> Document should not be empty Yeah, I see :) ```python djongo.sql2mongo.SQLDecodeError: FAILED SQL: INSERT INTO "django_migrations" ("app", "name", "applied") VALUES (%(0)s, %(1)s, %(2)s) ``` But this happens during inserting...
@rajat45mishra It seems I need to do something else besides downgrading. Thank you for your time!
@rajat45mishra I've found what's the problem https://github.com/nesdis/djongo/issues/274#issuecomment-496844652
> I was having the same problem. > Just downgrade the sqlparse library to 0.2.4 and it will be solved. > > https://github.com/andialbrecht/sqlparse/releases Having the same problem even with sqlparse...