Greetings. I decided to extend the basic User model for Django (1.9.7) (say, by adding the balance field). Added AUTH_PROFILE_MODULE in settings.py . Created a model in models.py:
from django.contrib.auth.models import AbstractBaseUser, User from django.db import models from decimal import Decimal class MyUser(AbstractBaseUser): user = models.ForeignKey(User) balance = models.DecimalField(..., max_digits=7, decimal_places=0, default=Decimal('0')) Through the built-in forms, authorization and registration work. But if to address to user.balance nothing. Also, if you try to delete an account from the admin panel, an error appears:
(1146, "Table 'mydatabase.project_myuser' does not exist").
Well, there is no balance field in the admin either. Please help to understand.