am trying to figure it out but when i print(product_id) print(type(product_id)) i get this output 1 <class 'str'>, so probably its because i cant iterate over a string but am still failing to figure it out
On Fri, Jun 21, 2019 at 10:16 PM Lutalo Bbosa joseph <bbos...@gmail.com> wrote: > hi hector, can u help me fix it, coz am kinda puzzled > > > > > On Fri, Jun 21, 2019 at 9:56 PM Héctor Alonso Lozada Echezuría < > ima...@gmail.com> wrote: > >> Apparently product_id has no value >> >> product_id = request.POST.get("product_id") >> print(product_id) >> print(type(product_id)) >> >> >> El vie., 21 jun. 2019 a las 6:33, Lutalo Bbosa joseph (<bbos...@gmail.com>) >> escribió: >> >>> 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. >>> >> >> >> -- >> Héctor Alonso Lozada Echezuría >> >> -- >> 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/CADTS2YynLDDPoDa3h_Ks%2B6dTQY9Fs4y42yLCdszJONoz3BzXmw%40mail.gmail.com >> <https://groups.google.com/d/msgid/django-users/CADTS2YynLDDPoDa3h_Ks%2B6dTQY9Fs4y42yLCdszJONoz3BzXmw%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%3DR2YMJitLizXQg2_a8tyTUF2%2B46im%2B4MvoGyzyHQayrCw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.