Answer the question
In order to leave comments, you need to log in
An error in the model. Specify where?
Model.
from django.db import models
class Post(models.Model):
title = models.CharField(max_length=120)
text = models.TextField()
def __str__(self):
return self.title
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question