![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
|
Web app idea
I am by no means an expert Python coder, or expert any language coder.
No my disclaimer is out of the way ....I want to build a web app with Python as i use Python alot for offline apps. My understanding to use it as a web app language is to use the CGImodule to access URL passed variables. My look into web frameworks seems to have them all having their own mini web server; i want to use my current Apache server. 1 of my first needs in this app is a timer. I thought i could use Javascript to countdown but then to pass that the time has expired onto the Python backend app is where i get a little fuzzy. Any help in this field would be greatly appreciated. Thanks ![]() |
|
|
|
|
|
#2 |
|
Hobbyist Programmer
Join Date: Oct 2005
Posts: 211
Rep Power: 3
![]() |
You could post the 'time expiration' by doing a submit a python module :
Something similar to the steps shown here: http://www.c-sharpcorner.com/WebForm...CSAppKS001.asp would probablly work but the timeout could simulate the form submit. *I haven't tested this, and i'm pretty sure there would be a better way of doing this, but it's a place to start* -MBirchmeier |
|
|
|
|
|
#3 |
|
Programming Guru
![]() Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 4
![]() |
You can use mod_python with Apache, which is probably the best option. Running Python under CGI would remove any significant advantage using Apache would give you.
|
|
|
|
|
|
#4 |
|
Newbie
|
Thanx for the replies guys.
What a mess I made of that, my first post on these forums. Less: don't post while falling asleep. The host that will running this app doesnt seem to have mod_python install on their apache install. So this rules out the frameworks it seems. So I see I have 2 options 1) use CGI like URLs to pass variables 2) use PHP as a type of front end to calling python scripts to do all the work. Any better suggestions ?? |
|
|
|
|
|
#5 |
|
Programming Guru
![]() Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 4
![]() |
Other than to get a different host?
![]() Nope. I think those are all of your options. Without mod_python, or access to a Python-based server such as CherryPy, you're really just left with CGI. |
|
|
|
|
|
#6 | |
|
Professional Programmer
|
Quote:
2) Why would you use a backend code as a frontend to call a different backend? |
|
|
|
|
|
|
#7 | ||
|
Newbie
|
Quote:
Quote:
I guess I just want a way to use Python rather then PHP. |
||
|
|
|
|
|
#8 |
|
Professional Programmer
Join Date: May 2006
Location: Maryland, USA
Posts: 306
Rep Power: 3
![]() |
You should check out one of the python web developement frameworks like Zope , Django, or TurboGears.
|
|
|
|
|
|
#9 |
|
Programming Guru
![]() Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 4
![]() |
DaveQB seems to be limited by his hosting company. If CherryPy and mod_python are out of the question, then Zope, Django and Turbogears certainly are.
|
|
|
|
|
|
#10 | |
|
Caffeinated Neural Net
Join Date: Jun 2005
Location: Dry west coast of Canada
Posts: 927
Rep Power: 4
![]() |
Quote:
Obviously, with data that expires, or is sensitive, you want to use POST, as you suggest. POST is also necessary if the length of the extra data exceeds environment limits.
__________________
A man's knowledge is like an expanding sphere, the surface corresponding to the boundary between the known and the unknown. As the sphere grows, so does its surface; the more a man learns, the more he realizes how much he does not know. Hence, the most ignorant man thinks he knows it all. - L. Sprague de Camp |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|