I’m new to google apps engine.
I want to have a something like:
class demo(db.model)
user = db.UserProperty()
date = db.DateProperty(auto_now=False, auto_now_add=False)
weekly = SomeNewProperty()
...
How do I create this “SomeNew” property?
I read some docs about it but didnt understand what to do.
Thanks
The different property types specify the type of the property. You can’t easily define your own types (and I don’t think that this is what you’re after).
Take a look at this page to see a list of different property classes.
For example to add a new boolean property
weeklyyou’d write:If you want a “complex” property, then you can model that as its own model and use a
ReferencePropertylike this: