Replace User and UserProfile with Account which inherits from AbstractBaseUser.
Update posts app to use Account model.
Update settings.AUTH_USER_MODEL and use Django REST Framework Router in urls.py.
Update everything else ...
More updates.