Re: Django and MySQL NDB Cluster

2020-01-24 Thread Victor Guimarães Nunes
Yesterday I figured how to solve this issue using a custom Database backend. I'm posting this here to help anyone have the same problem. 1. Create a new python package for it (I recommend use poetry for it): django-mysql-nosavepoint/ > ├── django_mysql_nosavepoint >

Re: Django and MySQL NDB Cluster

2020-01-23 Thread Victor Guimarães Nunes
I found a (dummy) solution for this. The error was occurring when a Signal from post_save of User model was being triggered. In that signal I was performing a SomeModel.objects.get_or_create. So, apparently the get_or_create method was implemented using transactions with savepoints enabled. All

Re: Django and MySQL NDB Cluster

2020-01-23 Thread Victor Guimarães Nunes
No, the database is all set and includes some data by the way. Em quinta-feira, 23 de janeiro de 2020 04:49:16 UTC-3, maninder singh Kumar escreveu: > > Could it be the server doesn't have the database ? > > > > [image: --] > > Maninder Kumar > [image: http://]about.me/maninder.s.kumar >

Re: Django and MySQL NDB Cluster

2020-01-23 Thread Victor Guimarães Nunes
Will do Em quarta-feira, 22 de janeiro de 2020 18:32:04 UTC-3, Jason escreveu: > > https://code.djangoproject.com/ticket/27677 > > Check the last comment from Tim. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group

Re: Django and MySQL NDB Cluster

2020-01-22 Thread maninder singh Kumar
Could it be the server doesn't have the database ? [image: --] Maninder Kumar [image: http://]about.me/maninder.s.kumar On Thu, Jan 23, 2020 at 1:49 AM Victor Guimarães Nunes < nunessvict...@gmail.com> wrote: > Hi, > > I'm having some trou

Re: Django and MySQL NDB Cluster

2020-01-22 Thread Jason
https://code.djangoproject.com/ticket/27677 Check the last comment from Tim. -- 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...@googlegrou