Модель.
from django.db import models
class Post(models.Model):
title = models.CharField(max_length=120)
text = models.TextField()
def __str__(self):
return self.title
Ошибка:
In [1]: from pages.models import Post
In [2]: Post.objects.all()
Out[2]: , ]>
In [3]: Post.objects.cereate(tittle='Title 2...', text='Text 2!')
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
in
----> 1 Post.objects.cereate(tittle='Title 2...', text='Text 2!')
AttributeError: 'Manager' object has no attribute 'cereate'