2👍
✅
To remove the authtoken tables you may use django’s migration command in the following way:
python manage.py migrate authtoken zero
This will revert all the migrations from the authtoken app, effectively removing the tables from the database (as long as this doesn’t break any constraints).
The zero migration can be used with any installed django app (see relevant django documentation).
After running the zero migration, you may remove the app from INSTALLED_APPS
👤Ire
1👍
You can choose the first option. There are 3 steps should you do to complete uninstall authtoken
from your Django app
- Remove
rest_framework.authtoken
fromINSTALLED_APPS
, this action will tell your Django app to do not take any migrations file from that module - Remove
authtoken_token
table, if you will - Find the record with
authtoken
app name in tabledjango_migrations
, you can remove it.
Note: There are several error occurs in your code, because authtoken
module is removed from your INSTALLED_APPS
. My advice, backup your existing database first before you do above step
- [Django]-How to access the Twitter API after login with Django social auth?
- [Django]-In django-tastypie, can choices be displayed in schema?
- [Django]-Docker-compose cannot wait for mysql database
- [Django]-How to Restart Celery Wroker ran by Supervisord
- [Django]-ImportError: No module named south
Source:stackexchange.com