Open scorchio opened 7 years ago
@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 I came with another solution.
@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)
Hi,
I have a Django setup where I'm trying to provide an API and use it as a Telegram bot at the same time. (Not the best setup I know, but I wanted a light setup, possibly refactoring the bot into a separate service later when it's really necessary.)
I wanted to enable support for Django REST Framework's token authentication after I got started with django-telegram-bot. When I run
python manage.py migrate
, it fails and gives me this:Is there a workaround for this?