djongo
djongo copied to clipboard
SQLDecodeError: FAILED SQL: INSERT INTO "django_migrations"
SQLDecodeError occurs when Starting admin app
Python script
python manage.py migrate
Environment
mongodb v4.0.4 djongo v1.2.31 django v2.1.7
Traceback
File "D:/program/python/VideoWeb/manage.py", line 15, in
djongo.sql2mongo.SQLDecodeError: FAILED SQL: INSERT INTO "django_migrations" ("app", "name", "applied") VALUES (%(0)s, %(1)s, %(2)s) Version: 1.2.31
Im also getting same error while migrating pls guide me to solve this error.
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
@FurlanV its working!.
Just what i was looking for Thanks!!!!! You are awesome
@FurlanV its working!.
Just what i was looking for Thanks!!!!! You are awesome
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
Thanks a lot!!! It's really helpful!!!
Can anyone explain a little bit? django_migrations table should not migrate to mongodb if router.allow_migrate return False, why it is still trying to create or insert into mongodb?
djongo.sql2mongo.SQLDecodeError: FAILED SQL: CREATE TABLE "payment_checkout" ("id" int32 NOT NULL PRIMARY KEY AUTOINCREMENT, "check_out_date_time" date NULL)
please help me to resolve this issue
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 0.2.4 and djongo 1.2.32 and 1.2.31 and django from 2.1.7 to 2.2.1
I've found what's the problem https://github.com/nesdis/djongo/issues/274#issuecomment-496844652
i've strange issue, i use sqlparse 0.2.4 and djongo 1.2.33 in local it run without trouble, but since i deploy it via docker to the server, its not work. its very strange, is it because OS dependency of mongo db? because local i'm using macos and docker is linux, same issue with you guys, but only in docker
same issue.. downgraded to sqlparse==0.2.4 and django==1.2.31. but still same error...
Django==3.0.5 sqlparse==0.2.4 djongo==1.3.3 still have issue migrate on docker.
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 no luck
Same issue Downgraded sqlparse but still error is happening
Downgraded sqlsparse but getting same error.
I have re-created new fresh project.
I noticed the User model in my app causing that error.
So i changed the name of model User -> user
than i ran only makemigrations myapp
commad instead of makemigrations
.