I'm making a (quite) simple python web application on GAE. The web app basically, ask user input, do basic calculation, then spew out some question from several module based on previous calculation, do basic calculation, spew out more information to the user.
Now, the problem is
So far, I've had been hard coding the data in python string literal separated with some if-elif-else as python module, but it is soo ugly (the data is formatted in HTML and more than one line per data). I could store it in the database but it may required the more cpu cycle and I don't know an easy way to store constant (non user modifiable) on the datastore. Putting it in a file, formatted in XML or something could require even more cpu power on parsing. So what is the best way to store constant data?
Ah... whatever. I use database for that. Used cache. And thinking about denormalizing it even further.