Answer the question
In order to leave comments, you need to log in
Where is the Python Django error?
Good afternoon, I don’t understand where the error is, help me figure out what value in the table can be set for the
models numbers:
from django.db import models
class user(models.Model):
name = models.CharField('Ник-найм', max_length = 50)
stat = models.CharField('Статус' max_length = 160)
balance = models.CharField('Баланс' max_length = 50)
def __str__(self):
return self.name
Answer the question
In order to leave comments, you need to log in
Commas - balance = models.CharField('Balance', max_length = 50)
stat = models.CharField('Status', max_length = 160)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question