citronic
citronic

Reputation: 10168

Can I add Runtime Properties to a Python App Engine App?

Coming from a java background I'm used to having a bunch of properties files I can swap round at runtime dependent on what server I'm running on e.g. dev/production.

Is there a method in python to do similar, specifically on Google's App Engine framework?

At the minute I have them defined in .py files, obviously I'd like a better separation.

Upvotes: 0

Views: 164

Answers (2)

Aaron Watters
Aaron Watters

Reputation: 2846

I don't see what is wrong with using python files to configure your application (apart from cultural issues :) ). In fact I have an issue with frameworks which don't allow me to script the configuration parameters.

That said, please have a look http://aaron.oirt.rutgers.edu/myapp/docs/W1100_2300.GAEDeploy for a discussion of how to configure WHIFF application resources to configure applications to work in and out of the GAE framework in a portable manner.

Upvotes: 1

jldupont
jldupont

Reputation: 96716

You can:

  1. edit records in the datastore through the dashboard ( if you really have to )

  2. upload new scripts / files ( you can access files in READ-ONLY )

  3. export a WEB Service API to configuration records in the datastore ( probably not what you had in mind )

  4. access a page somewhere through an HTTP end-point

Upvotes: 1

Related Questions