University Project

Hi, I am following this tutorial (Building a Food Delivery Web App With Django & Python: Part 2 Setting up the Ordering System Part 1 - YouTube) to create an online grocery store.

I am a novice programmer and I am getting this error:

As it refers to line 43 of, I have shown it also in the comments.

Please don’t post images of code or errors, copy/paste the code into the body of your message. When you’re posting code or traceback messages, surround the code (or traceback) between lines of three backtick - ` characters. This means you’ll have a line of ```, then your code, then another line of ```. Do not prefix each line with the > character. (I’ve made the edit for you this time.)

In general, that error is caused by trying to convert a string to an integer, when the string isn’t the representation of a valid integer - in this case a null string.

As a side note, have you worked your way through either the Official Django Tutorial or the Django Girls Tutorial? That’s where I always recommend that people start.