ok sahil ..well done On Wed, Mar 31, 2021, 16:50 sahil gupta <sahilguptawush...@gmail.com> wrote:
> Worked , issue resolved thanks for your help > > On Wed, 31 Mar 2021, 8:38 am Ashima jain, <vn24111...@gmail.com> wrote: > >> & run migrations >> >> On Wed, Mar 31, 2021, 08:37 Ashima jain <vn24111...@gmail.com> wrote: >> >>> ur pub_date is bad practice & remove timezone from ur views >>> >>> On Tue, Mar 30, 2021, 18:28 sahil gupta <sahilguptawush...@gmail.com> >>> wrote: >>> >>>> from django.utils import timezone >>>> >>> q = Question(question_text="What's new?", pub_date=timezone.now()) >>>> Traceback (most recent call last): >>>> File "<console>", line 1, in <module> >>>> File >>>> "C:\Users\DELL\Envs\test3\lib\site-packages\django\db\models\base.py", line >>>> 501, in __init__ >>>> raise TypeError("%s() got an unexpected keyword argument '%s'" % >>>> (cls.__name__, kwarg)) >>>> TypeError: Question() got an unexpected keyword argument 'question_text' >>>> >>>> >>>> -- >>>> 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+unsubscr...@googlegroups.com. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/django-users/5c968208-a9e0-4426-af8e-ede7ee5855d3n%40googlegroups.com >>>> <https://groups.google.com/d/msgid/django-users/5c968208-a9e0-4426-af8e-ede7ee5855d3n%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>> -- >> 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+unsubscr...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-users/CAJhs3iPEA%3Dv41mccrHijznskPJ7tpALR90HF4k1dmSE7n7u8og%40mail.gmail.com >> <https://groups.google.com/d/msgid/django-users/CAJhs3iPEA%3Dv41mccrHijznskPJ7tpALR90HF4k1dmSE7n7u8og%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> > -- > 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+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CAAZ_3RotRQ9j5ZUtZuNMTUdzQNRVGGRbUa%3DnRgfOdfOKHXJApA%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAAZ_3RotRQ9j5ZUtZuNMTUdzQNRVGGRbUa%3DnRgfOdfOKHXJApA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAJhs3iONzwRbj6NRJGRqOoXnUDphy32NqyrDWwC%3Du4-R_hjFwA%40mail.gmail.com.