“BadValueError: Property category is required” on GAE

后端 未结 1 1629
谎友^
谎友^ 2021-01-26 05:27

I am trying to make a simple webapp html page that prints out data given from a datastore. However, I am continually running the following error:

    raise BadVa         


        
相关标签:
1条回答
  • 2021-01-26 06:25

    There might be some entities in your current datastore that don't have the category property, or other required properties, filled out. This could sometimes happen when you add the property to your model after already creating some other entities before that. Or perhaps adding the required=True option to a property that previously wasn't required.

    If you are playing with dev data, I would suggest that you either clear your datastore or delete all your Question entities, and see if that works.

    Otherwise, you'd have to manually add data to all the required fields or remove the required=True option.

    0 讨论(0)
提交回复
热议问题