ValueError at /carts/update/ invalid literal for int() with base 10: '' thats the error
On Fri, Jun 21, 2019 at 7:46 PM Jorge Gimeno <jlgimen...@gmail.com> wrote: > Would you be able to copy and paste the stack trace here? Without that, > it's really hard to see where this exception is coming from. > > -Jorge > > On Fri, Jun 21, 2019 at 9:13 AM Lutalo Bbosa joseph <bbos...@gmail.com> > wrote: > >> here is my template that handles that bit, and i have as well attached >> atemplate in which its used >> >> On Fri, Jun 21, 2019 at 6:59 PM Aldian Fazrihady <mob...@aldian.net> >> wrote: >> >>> Does the stack trace mention a template variable name? It looks like a >>> template variable that is expected to have integer value is not properly >>> initialized. >>> >>> Regards, >>> >>> Aldian Fazrihady >>> >>> On Fri, 21 Jun 2019, 22:42 Lutalo Bbosa joseph, <bbos...@gmail.com> >>> wrote: >>> >>>> i as well have a models.py file for carts, and products which is >>>> attached, when i try to search for a solution on stack overflow,all >>>> solutions insist on problem with integers and strings in my code. though >>>> these were passed solutions and not too similar to this one >>>> >>>> On Fri, Jun 21, 2019 at 6:35 PM Lutalo Bbosa joseph <bbos...@gmail.com> >>>> wrote: >>>> >>>>> on pressing remove the product is supposed to be removed from the >>>>> cart, but it instead displays an error >>>>> >>>>> On Fri, Jun 21, 2019 at 6:34 PM Lutalo Bbosa joseph <bbos...@gmail.com> >>>>> wrote: >>>>> >>>>>> well here is apic of what am doing, >>>>>> >>>>>> On Fri, Jun 21, 2019 at 6:20 PM Ahmed Ishtiaque < >>>>>> ahmedisht...@gmail.com> wrote: >>>>>> >>>>>>> Hi Lutalo, >>>>>>> >>>>>>> Could you also share the stacktrace of the error and when it >>>>>>> happens? It would help us decipher what's really going on in relation to >>>>>>> what you're trying to do. >>>>>>> >>>>>>> Best, >>>>>>> Ahmed >>>>>>> >>>>>>> On Fri, Jun 21, 2019 at 8:33 AM Lutalo Bbosa joseph < >>>>>>> bbos...@gmail.com> wrote: >>>>>>> >>>>>>>> hi guys, am working on an ecommerce system, which has cart as an >>>>>>>> app, but i keep on getting this error and cant move on any help, here >>>>>>>> is my >>>>>>>> views.py , >>>>>>>> from the commandline the error is on line 42 >>>>>>>> >>>>>>>> -- >>>>>>>> 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 post to this group, send email to django-users@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/CAMz%3Dh%3DTQikVLrVTnwQse3r5P-rxCvaHFRP-qnYWrYSWGHPSGgw%40mail.gmail.com >>>>>>>> <https://groups.google.com/d/msgid/django-users/CAMz%3Dh%3DTQikVLrVTnwQse3r5P-rxCvaHFRP-qnYWrYSWGHPSGgw%40mail.gmail.com?utm_medium=email&utm_source=footer> >>>>>>>> . >>>>>>>> For more options, visit https://groups.google.com/d/optout. >>>>>>>> >>>>>>> -- >>>>>>> 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 post to this group, send email to django-users@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/CAKizqR54L-dC46wx--DD4BL%2Biko_itWk-fPs%2B9haibZJ_LnTvA%40mail.gmail.com >>>>>>> <https://groups.google.com/d/msgid/django-users/CAKizqR54L-dC46wx--DD4BL%2Biko_itWk-fPs%2B9haibZJ_LnTvA%40mail.gmail.com?utm_medium=email&utm_source=footer> >>>>>>> . >>>>>>> For more options, visit https://groups.google.com/d/optout. >>>>>>> >>>>>> -- >>>> 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 post to this group, send email to django-users@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/CAMz%3Dh%3DR7b_mpnBw_xLKW%2BX5jyVk4CKXm7jwVG37R8BsSPQQegg%40mail.gmail.com >>>> <https://groups.google.com/d/msgid/django-users/CAMz%3Dh%3DR7b_mpnBw_xLKW%2BX5jyVk4CKXm7jwVG37R8BsSPQQegg%40mail.gmail.com?utm_medium=email&utm_source=footer> >>>> . >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> -- >>> 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 post to this group, send email to django-users@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/CAN7EoAbag_or9TPOb-KiYCmaD%2B4DDyG%2ByUfU%3DPzVRfacU09GNg%40mail.gmail.com >>> <https://groups.google.com/d/msgid/django-users/CAN7EoAbag_or9TPOb-KiYCmaD%2B4DDyG%2ByUfU%3DPzVRfacU09GNg%40mail.gmail.com?utm_medium=email&utm_source=footer> >>> . >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- >> 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 post to this group, send email to django-users@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/CAMz%3Dh%3DQ39LSikG6aFL4PGuppSy2eOjKkEVqDJTVeRZOvEBFE0w%40mail.gmail.com >> <https://groups.google.com/d/msgid/django-users/CAMz%3Dh%3DQ39LSikG6aFL4PGuppSy2eOjKkEVqDJTVeRZOvEBFE0w%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- > 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 post to this group, send email to django-users@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/CANfN%3DK_%3D3HTrTFXtCDKBOmUAF78fby3nOoBJei8-1kSfaVRNeA%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CANfN%3DK_%3D3HTrTFXtCDKBOmUAF78fby3nOoBJei8-1kSfaVRNeA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 post to this group, send email to django-users@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/CAMz%3Dh%3DRW4u5tLZKusnzb9Wyu8xu93wUrzxN4n2K39TvijH5u-A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.