SP
Size: a a a
SP
PZ
AO
AK
get_object
по username
.python3 manage.py makemigrations && python3 manage.py migrate
AO
python3 manage.py makemigrations && python3 manage.py migrate
PZ
./manage.py migrate
AK
./manage.py migrate
AO
./manage.py migrate
V
You should commit this migration but leave the old ones in place;
the new migration will be used for new installs. Once you are sure
all instances of the codebase have applied the migrations you squashed,
you can delete them.
commit
подразумевается ./manage.py migrate app_name
?AK
AK
'django.contrib.auth'
в INSTALLED_APPS есть?AO
'django.contrib.auth'
в INSTALLED_APPS есть?AO
AK
AI
AO
AI
AO
AO
username = models.CharField(max_length=255, unique=True, primary_key=True)
так тогда придётся?