Skip to main content

Blog #10

Hey Humans!

Its 12:57PM, Just solve the error for which I cried and tried a lot about in the early morning almost 5AM,  after lots of shit I gone to sleep but now I actually solve it and the error is so silly probably it happened because of my sleepy eyes missed the line "posts = Posts.query.all()" to put it in admin_user's code. That's my bad, I was so frustrated for this error since I wake up. Super relaxed right now. Lots of code to do.

Bye/>

Comments

Popular posts from this blog

Got an error while coding in django

 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...