Started a paid internship at ONGC Tripura asset on August 17 2022. I was Excited first day. New learnings. Thanks to ITI and my big bro who force me to take admission in ITI. Now I'm in the HR-ER room writing this post waiting for my incharge's command to show my word, excel, coding skills.
error is in an element name "price" in model.py. error: return field.get_db_prep_save(self._effective_default(field), self.conne ction) File "C:\Users\Shubrajit Acharjee\PycharmProjects\untitled\lib\site-packag es\django\db\models\fields\__init__.py", line 823, in get_db_prep_save return self.get_db_prep_value(value, connection=connection, prepared=Fal se) File "C:\Users\Shubrajit Acharjee\PycharmProjects\untitled\lib\site-packag es\django\db\models\fields\__init__.py", line 818, in get_db_prep_value value = self.get_prep_value(value) File "C:\Users\Shubrajit Acharjee\PycharmProjects\untitled\lib\site-packag es\django\db\models\fields\__init__.py", line 1776, in get_prep_value raise e.__class__( ValueError: Field 'price' expected a number but got ''. solution:Go to migrations file and delete all the auto generated migration files related to element "price" and code correctly in models.py file and ru...
Comments
Post a Comment