473,394 Members | 1,722 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Python on the web - newby question

Apologies in advance if this is either a) the wrong board or b) been
answered a million times elsewhere, but...

I have been given an assignment to get a python module up and running
behind an existing web site. At the moment the rest of the site is
developed in PHP but the hosts have said they will provide python
support for free, although they haven't given any more details than
that, so I'm not sure exactly what that means. All reasonably
encouraging though.

I'm a newbie to python but quite experienced with Java/J2EE/JBoss.
What I need to know is how I get python running on the server and what
tools/middleware I would need to have installed on the host's machines
to be able to support my python modules.

Again, apologies if this is the wrong place but I'm a bit lost and
would really appreciate some pointers.

TIA
Simon
Sep 3 '08 #1
1 1150
On Sep 3, 8:41*pm, Bruno Desthuilliers
<bdesth.quelquech...@free.quelquepart.frwrote:
SimonPalmer a écrit :
Apologies in advance if this is either a) the wrong board or b) been
answered a million times elsewhere, but...
I have been given an assignment to get a python module up and running
behind an existing web site. *At the moment the rest of the site is
developed in PHP but the hosts have said they will provide python
support for free, although they haven't given any more details than
that, so I'm not sure exactly what that means.

Depending on the hosts, this can range from having an antiquated python
version with only cgi enabled and no way to install anything to the very
last stable release and (almost) whatever third-part lib / frameworks
and correct configuration.
*All reasonably
encouraging though.
I'm a newbie to python but quite experienced with Java/J2EE/JBoss.

Quite another world...
What I need to know is how I get python running on the server

For which definition of 'server' ? The computer, or the web server process ?
and what
tools/middleware I would need to have installed on the host's machines
to be able to support my python modules.

Depends on your modules dependencies !-)

More seriously : Python is known has being the language with more web
frameworks than keywords. IOW, there's no simple straightforward answer
to your question. Fisrt choose which Python web development solution you
intend to use, then read the FineManual's "deployment" section of the
chosen solution.

You'll find pointers to most web-related libs / frameworks here:http://wiki.python.org/moin/WebFrame...WebProgramming

Given your situation (Python newcomer with a real job to do), and if
your job is anything more than a very Q&D deadsimple task, I'd
personnaly recommand Django (http://djangiproject.com). Don't let the
version number fools you (latest version is 1.0 release candidate),
Django is a mature, solid and proven solution that have years of
existance, and what they call 1.0rc would be labeled at least 3.5 for
some other software... It's also mostly documented, and there's a strong
community around the framework, so you should not have much problem
getting help.

For any other Python question (I mean, non django-related), you're at
the right place.

Oh, and yes, if I may suggest a reading:http://dirtsimple.org/2004/12/python-is-not-java.html

HTH, and welcome on board...
Hey, thanks very much this is really helpful. What I really need is
pointers, I'm sure I can figure the rest out. I am indeed a guy with
a real job to do. Doesn't help that the client and host are on the
other side of the world.

I quite like python. As a veteran coder who has tried a lot of
languages this has been a pleasant experience so far. I *really* like
numpy and scipy. My stock in trade is algorithms and they are quite a
revelation. I wish I had known about them sooner and I think they
will keep me coming back to python regularly.

Thanks again.
SP
Sep 3 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Damien | last post by:
I have just built a simple stopwatch application, but when i f5 to get things goings i get this message, An unhandled exception of type 'System.ArithmeticException' occurred in...
2
by: kbass | last post by:
I am new to Python and I am attempting to retrieve data from a database and I would like to place this data into a nested dictionary. After placing the data into a dictionary, I would like to loop...
2
by: AnOvercomer02 | last post by:
Hi. What is the best way to learn Python? None of the local schools near me teach any courses on the topic. Thanks. -- Cody Houston AnOvercomer02@webtv.net
0
by: Pete | last post by:
Hi All, A total Newby with, possibly, a daft question? However, until I can get a reasonable explanation I am disinclined towards going further. Here goes: I recently downloaded the latest...
10
by: Fred Nelson | last post by:
Hi: I have programmed in VB.NET for about a year and I'm in the process of learing C#. I'm really stuck on this question - and I know it's a "newby" question: In VB.NET I have several...
4
by: Fred Nelson | last post by:
Hi: I'm developing a web application that needs to have five values, each retrieved from cookies on many pages. If I have five "Request.Cookies" commands together does this cause five "round...
2
by: Fred Nelson | last post by:
Hi: I'm working on a VS2005 web application and I have what is probabably a "newby" question. In VS2003 I could drag a textbox/button/etc on to a form and position it with the mouse. I...
2
by: johnnyG | last post by:
Greetings, I'm studying for the 70-330 Exam using the MS Press book by Tony Northrup and there are 2 side-by-side examples of using the SHA1CryptoServiceProvider to create a hash value from a...
10
by: Charles Russell | last post by:
Why does this work from the python prompt, but fail from a script? How does one make it work from a script? #! /usr/bin/python import glob # following line works from python prompt; why not in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.