Firuz 0 Newbie Poster
  TypeError                                 Traceback (most recent call last)
<ipython-input-5-46b9c90f7339> in <module>
----> 1 a = Article(article_title = "Какая-то крутая статья",article_text = "Какой-то крутой текст ...",pub_date = timezone.now())

/usr/lib/python3/dist-packages/django/db/models/base.py in __init__(self, *args, **kwargs)
499                     pass
500             for kwarg in kwargs:
--> 501                 raise TypeError("%s() got an unexpected keyword argument '%s'" % (cls.__name__, kwarg))
502         super().__init__()
503         post_init.send(sender=cls, instance=self)

TypeError: Article() got an unexpected keyword argument 'pub_date'
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.