Mohammad Reza Abedini

Results 6 comments of Mohammad Reza Abedini

@scorchio I have the same problem. If you don't need the 'rest_framework.authtoken' app, you could remove it from INSTALLED_APPS. Then the migration would succeed. I would let you know if...

@scorchio In AutToken model if you change the related name of the user field the problem would be resolved. sth like this: user = models.OneToOneField(AUTH_USER_MODEL, related_name='%(app_label)s_auth_token', on_delete=models.CASCADE)

with some logging, I've found that in some requests that there is no response of the bot, the cls.bot_tokens is empty.

I found the problem. In gunicorn the number of workers were set to 3. Just one of them could have bot_tokens and two of them didn't have the tokens. When...

Yes, it solved the problem. What the line is for?!

It seems that the problem still remains. When I use gunicorn with supervisor, I have the same issue. I tried to regenerate the issue with docker. Using gunicorn with --bind...