Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #88032 > unrolled thread
| Started by | Jerry OELoo <oyljerry@gmail.com> |
|---|---|
| First post | 2015-03-26 11:26 +0800 |
| Last post | 2015-03-27 11:29 -0700 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.lang.python
What is elegant way to do configuration on server app Jerry OELoo <oyljerry@gmail.com> - 2015-03-26 11:26 +0800
Re: What is elegant way to do configuration on server app CHIN Dihedral <dihedral88888@gmail.com> - 2015-03-27 11:29 -0700
| From | Jerry OELoo <oyljerry@gmail.com> |
|---|---|
| Date | 2015-03-26 11:26 +0800 |
| Subject | What is elegant way to do configuration on server app |
| Message-ID | <mailman.187.1427357959.10327.python-list@python.org> |
Hi. I have used python to provide a web service app, it will running 7*24, and it will return some data to client by API. Now I want to add some extra data in return data, ex, "status = 1", and I want this value 1 can be configured, that means I can control that service app return status with 0, 1 or other value, and I want to keep service running always. Currently, I can just think out that I put status into a configure file, and service schedule read this file and get status value, Is there any other elegant way to achieve this? What is standard way in python for this requirement? Thanks! Best Regards Jerry -- Rejoice,I Desire!
[toc] | [next] | [standalone]
| From | CHIN Dihedral <dihedral88888@gmail.com> |
|---|---|
| Date | 2015-03-27 11:29 -0700 |
| Message-ID | <358d2b83-b873-48f6-b9bf-3043944fcfbe@googlegroups.com> |
| In reply to | #88032 |
On Thursday, March 26, 2015 at 4:19:33 PM UTC+8, Jerry OELoo wrote: > Hi. > I have used python to provide a web service app, it will running 7*24, > and it will return some data to client by API. http://jonpy.sourceforge.net/modpy.html Check the page of modpy and django.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web