Django "pub_date" error

22 views
Skip to first unread message

Daniel Tobi Onipe

unread,
Jul 15, 2018, 7:37:31 PM7/15/18
to django...@googlegroups.com
Hi guys. My name is Daniel. I've been having issues with the "pub_date" part of the tutorial. It keeps popping up a traceback error saying "pub_date is an invalid keyword argument for this function"... What should I do? Thanks in advance
Screenshot_20180716-001115.png

afj afj

unread,
Jul 15, 2018, 9:56:50 PM7/15/18
to Django users
probably if you would show us the code you've written it would be better.

afj afj

unread,
Jul 15, 2018, 10:00:30 PM7/15/18
to Django users
probably it would be an error spelling the proper function.


On Monday, July 16, 2018 at 2:37:31 AM UTC+3, Daniel Tobi Onipe wrote:

Daniel Tobi Onipe

unread,
Jul 15, 2018, 10:53:32 PM7/15/18
to django...@googlegroups.com
I wrote it exactly as it is in the tutorial...

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/75a202b2-b883-406e-be29-07be8f6bace9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dylan Reinhold

unread,
Jul 15, 2018, 11:25:30 PM7/15/18
to django...@googlegroups.com
Without your code no one can help you (they will just be guessing). Post your models.py and the exact traceback error.


On Sun, Jul 15, 2018 at 7:52 PM, Daniel Tobi Onipe <dextero...@gmail.com> wrote:
I wrote it exactly as it is in the tutorial...
On Mon, Jul 16, 2018, 02:56 afj afj <abu.3ab...@gmail.com> wrote:
probably if you would show us the code you've written it would be better.

On Monday, July 16, 2018 at 2:37:31 AM UTC+3, Daniel Tobi Onipe wrote:
Hi guys. My name is Daniel. I've been having issues with the "pub_date" part of the tutorial. It keeps popping up a traceback error saying "pub_date is an invalid keyword argument for this function"... What should I do? Thanks in advance

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.

To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

mottaz hejaze

unread,
Jul 16, 2018, 7:34:57 AM7/16/18
to django...@googlegroups.com
i dont know .. did you import the Question Class from models.py ??

On Mon, 16 Jul 2018, 05:25 Dylan Reinhold, <drei...@gmail.com> wrote:
Without your code no one can help you (they will just be guessing). Post your models.py and the exact traceback error.

On Sun, Jul 15, 2018 at 7:52 PM, Daniel Tobi Onipe <dextero...@gmail.com> wrote:
I wrote it exactly as it is in the tutorial...
On Mon, Jul 16, 2018, 02:56 afj afj <abu.3ab...@gmail.com> wrote:
probably if you would show us the code you've written it would be better.

On Monday, July 16, 2018 at 2:37:31 AM UTC+3, Daniel Tobi Onipe wrote:
Hi guys. My name is Daniel. I've been having issues with the "pub_date" part of the tutorial. It keeps popping up a traceback error saying "pub_date is an invalid keyword argument for this function"... What should I do? Thanks in advance

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.

To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.

To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

Melvyn Sopacua

unread,
Jul 21, 2018, 3:01:35 AM7/21/18
to django...@googlegroups.com
On maandag 16 juli 2018 04:52:51 CEST Daniel Tobi Onipe wrote:
> I wrote it exactly as it is in the tutorial...

Maybe that part. But you didn't define the pub_date field on the Question model
or made a typo in the field name. Go back into models.py and check.

--
Melvyn Sopacua
Reply all
Reply to author
Forward
0 new messages