Attributeerror: 'article' Object Has No Attribute 'learning_goals' -- Attribute Not Being Recognized For A Specific Model
Solution 1:
Services are completely isolated from each-other at code level. From App Engine Services as microservices:
In an App Engine project, you can deploy multiple microservices as separate services, previously known as modules in App Engine. These services have full isolation of code; the only way to execute code in these services is through an HTTP invocation, such as a user request or a RESTful API call. Code in one service can't directly call code in another service. Code can be deployed to services independently, and different services can be written in different languages, such as Python, Java, Go, and PHP. Autoscaling, load balancing, and machine instance types are all managed independently for services.
What this means is that you have to explicitly implement a way of sharing the datastore models across different services that need to access the same entity types.
My recommendation would be to have the file with the model definitions symlinked inside each of the services, see Sharing entities between App Engine modules and maybe Communicating between google app engine services.
Very important is also to re-deploy all services sharing the models whenever the models change, otherwise the services not re-deployed will be running with outdated model definitions, leaving room for errors like the one you reported.
Post a Comment for "Attributeerror: 'article' Object Has No Attribute 'learning_goals' -- Attribute Not Being Recognized For A Specific Model"