473,692 Members | 2,197 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Server/OS/Dev environment

Hi. I am new to Python, but very eager to learn. I've browsed many
postings and found conflicting opinions on the best backend and
development setup. In fact, I am more confused now that when I first
began investigating this problem.

I need to create web pages with MySQL as the primary data source.
What would be the best server set up for this? RH? Windows?
mod_python? Spyce? Some other templating mechanism?

To develop such a site, should I be using Vim? Idle? Or Windows gui
software? Install MySQL & Python on Windows? Stick with Linux?

A multitude of choices is great for the gurus, but not necessarily so
for a newbie...

Thanks for any comments,
Jean
Jul 18 '05 #1
8 1264
Pm
Jean wrote:
Hi. I am new to Python, but very eager to learn. I've browsed many
postings and found conflicting opinions on the best backend and
development setup. In fact, I am more confused now that when I first
began investigating this problem.

I need to create web pages with MySQL as the primary data source.
What would be the best server set up for this? RH? Windows?
mod_python? Spyce? Some other templating mechanism?

To develop such a site, should I be using Vim? Idle? Or Windows gui
software? Install MySQL & Python on Windows? Stick with Linux?

A multitude of choices is great for the gurus, but not necessarily so
for a newbie...

Thanks for any comments,
Jean


Varietas delectat, Jean. ;)
I suggest you spend a little time on exploring these and then
you'll find out what you like best. (It's just like about girls: it'd be
awful if every guy would prefer the same looks...)

To add to you confusion, maybe have a look at Zope as well (www.zope.org)
:-))
Or how about Webware? (http://webware.sourceforge.net/) Or Albatross?
(http://www.object-craft.com.au/projects/albatross/)

Best,
Pm
--
E-mail: base64.decodest ring('cHJpc3pAY XN5bHVtdGVsLmNv bQ==\n')
Jul 18 '05 #2
Pm <Mi****@nowhere .hu> wrote in message news:<c8******* ***@news.epidc. co.kr>...
Varietas delectat, Jean. ;)
I suggest you spend a little time on exploring these and then
you'll find out what you like best. (It's just like about girls: it'd be
awful if every guy would prefer the same looks...)

To add to you confusion, maybe have a look at Zope as well (www.zope.org)
:-))
Or how about Webware? (http://webware.sourceforge.net/) Or Albatross?
(http://www.object-craft.com.au/projects/albatross/)

Best,
Pm


Ok. Great, Miklos. Thanks a lot! ;)

Really, there are 2 items I need. Nice environment for rapid dev and
keeping codes clean. Of course, over a period of time, I will develop
my own taste. For now, though, I need to start a real project which
will double as a learning experience. I don't want to start down the
wrong path, then have to change course 3-4 months down the line.

So, what's your "current" setup & why do you like it?

Regards,
Jean
Jul 18 '05 #3
>Hi. I am new to Python, but very eager to learn.
Welcome!
I've browsed many
postings and found conflicting opinions on the best backend and
development setup. In fact, I am more confused now that when I first
began investigating this problem. Languages, text editors, mail clients..., it all comes down to
personal preferences and precisely what you need to do. Probably need
to look around at a variety of tools.
I need to create web pages with MySQL as the primary data source.
What would be the best server set up for this? RH? Windows?
mod_python? Spyce? Some other templating mechanism?


I found it easy to get started with Snakelets
<snakelets.sour ceforge.net/>
and CherryPy
<www.cherrypy.o rg/>

These are easy to install and get started with.
I'm also a fairly newbie Python programmer and simply did not have
the time to wrap my thoughts around large environments like Twisted
or Zope. Snakelets and CherryPy were a good start for me.

Python and MySQL run just about anywhere so the 'best' platform is
probably whatever you have in front of you.

For myself, my development platform tends to be Mac OS X with the
BBEdit text editor.
Deployment tends to be on variants of Linux, BSD, Mac OS X, and Windows.
Databases tend to be: Oracle, Firebird, PostgreSQL, and MySQL.
--Ray

--

Raymond Cote
Appropriate Solutions, Inc.
PO Box 458 ~ Peterborough, NH 03458-0458
Phone: 603.924.6079 ~ Fax: 603.924.8668
rgacote(at)Appr opriateSolution s.com
www.AppropriateSolutions.com

Jul 18 '05 #4
Pm
Jean wrote:
Pm <Mi****@nowhere .hu> wrote in message
news:<c8******* ***@news.epidc. co.kr>...
Varietas delectat, Jean. ;)
I suggest you spend a little time on exploring these and then
you'll find out what you like best. (It's just like about girls: it'd be
awful if every guy would prefer the same looks...)

To add to you confusion, maybe have a look at Zope as well (www.zope.org)
:-))
Or how about Webware? (http://webware.sourceforge.net/) Or Albatross?
(http://www.object-craft.com.au/projects/albatross/)

Best,
Pm


Ok. Great, Miklos. Thanks a lot! ;)

Really, there are 2 items I need. Nice environment for rapid dev and
keeping codes clean. Of course, over a period of time, I will develop
my own taste. For now, though, I need to start a real project which
will double as a learning experience. I don't want to start down the
wrong path, then have to change course 3-4 months down the line.

So, what's your "current" setup & why do you like it?

Regards,
Jean


Well, right now I'm struggling with Zope (and there's a PostgreSQL database
in the pot as well, though you wouldn't need a relational database with
quite a few webapps when you go the Zope way)
What I like about it is that it's so powerful/feature rich.
What I don't like it's hectic development roadmap and some idiosyncrasies.
The worst is that you don't have a complete text based representation of
your work, ie. some things are stored in the object oriented database only
(which you can export as XML but that's no use)
This is issue is to be addressed in the upcoming Zope3 version, a complete
rewrite, actually a whole different world. :(
Also, the somewhat steep learning curve is a problem.
So have a look and try to find out if you can put up with Zope now.

I gave Webware (and Albatross) a try, too. They are nice clean Pythonic
environments.
I like the server side sessioning about Albatross very much.
CherryPy, like Ray suggested, is also great to put low/moderate complexity
site online. Maybe I'm saying this only because now I'm terrified to
think of how much work it'd take to build a portal site like you can easily
do with Plone.. http://www.plone.org
Plone is another layer on CMF which is another (portal) layer
(http://cmf.zope.org/ ) on top of Zope... phew.
Maybe go get Plone and install on your Linux/Windows machine. That part is
very easy. :-)

So other-than-Zope solutions (mod_python?) rulez but
somehow money has always been in Zope so far for me. ;)
I guess that's because complex webapps/portals are easier/much less work to
build with Zope.
Best,
Miklós
--
E-mail: base64.decodest ring('cHJpc3pAY XN5bHVtdGVsLmNv bQ==\n')
Jul 18 '05 #5
On Sat, 22 May 2004 09:16:40 -0700, Jean wrote:
Pm <Mi****@nowhere .hu> wrote in message news:<c8******* ***@news.epidc. co.kr>
Varietas delectat, Jean. ;)
I suggest you spend a little time on exploring these and then
you'll find out what you like best. (It's just like about girls: it'd be
awful if every guy would prefer the same looks...)

To add to you confusion, maybe have a look at Zope as well (www.zope.org)
:-))
Or how about Webware? (http://webware.sourceforge.net/) Or Albatross?
(http://www.object-craft.com.au/projects/albatross/)

Best,
Pm


Ok. Great, Miklos. Thanks a lot! ;)

Really, there are 2 items I need. Nice environment for rapid dev and
keeping codes clean. Of course, over a period of time, I will develop
my own taste. For now, though, I need to start a real project which
will double as a learning experience. I don't want to start down the
wrong path, then have to change course 3-4 months down the line.

So, what's your "current" setup & why do you like it?

Regards,
Jean


zope is like the panacea for an illness that nobody has, but everybody
has symptoms of. Zope is incredibly impressive, incredibly powerful, it
does everything, it is brilliantly designed, but it requires immense
amounts of time and patience to figure out how to employ it effectively,
and customizing it to fit your needs will usually take more time than it
would take to construct something from scratch. There are, however,
numerous content management engines constructed on top of zope that fit
more specific needs, and can be customized for what you want with
relatively little sweat/blood. Plone is an excellent example.

If you can find a Zope product that fits your needs, use it, but if you
cant, you probably dont want to invest the time it would take to make one
yourself. (i'm sure you have figured that out if you have glanced at the
zope documentation yourself.)

mod_python is great! I have had quite a bit of success using mod_python
and some xml/xsl related python libraries. I like to use xml and xslt for
my templating. I put python code in my xml files, and use a little
pre-processor I threw together to process it. You might want to check out
http://sqlobject.org/ which makes database access, construction, and
manipulation a lot more pythonic.

If you need an extendable web application framework (for writing
client/server apps etc) you might want to check out the Twistd framework.

As far as development environments are concerned, you have many excellent
choices. I use a version of VIM that has a python interpreter compiled
into it. There are a lot of graphical IDEs with graphical debuggers etc,
for those who dont dig the 'home-rolled' environment thing- I use Eric3
when I need a graphical debugger, but it is also an excellent editor.
Eric3 has a built in project manager and class browser as well, so it
helps with those slightly bigger projects.

If you are using somebody else's server make sure that it has the right
modules, and make sure that it has a relatively up-to-date version of
python (unless you enjoy not using the nice new features). Many hosting
services are willing to add modules and perform updates if you ask them
nicely.

Good luck with your project!
--SegPhault

Jul 18 '05 #6
je**@simpleconf usion.com (Jean) wrote in message

Wow! I got quite a bit to chew here (except for Miklos's little
teasing at the beginning ;)) I guess I'v always known I have to find
my own little comfort zone, but with your help, I think I am off to a
good start. Thanks for the help. I think I am going to like this
place...

Regards,
Jean

PS., this doesn't mean you can't post additional suggestions ;)
Jul 18 '05 #7

"Ryan Paul" <se*******@sbcg lobal.net> wrote in message
news:pa******** *************** *****@sbcglobal .net...
On Sat, 22 May 2004 09:16:40 -0700, Jean wrote:

zope is like the panacea for an illness that nobody has, but everybody
has symptoms of. Zope is incredibly impressive, incredibly powerful, it
does everything, it is brilliantly designed, but it requires immense
amounts of time and patience to figure out how to employ it effectively, [... good stuff deleted] Good luck with your project!
--SegPhault


Yes, I second your evaluation* (once again, I'm developing with Zope..) and
I appreciate your "mod_python + xml" way. Sounds cool, anyway.
(As for Twisted, that scared me way too much...) Besides I'm also a VIM
fan (with compiled-in python, of course ;) ) Will check out Eric3 perhaps.
For non-Zope things I tend to use another excellent tool written in Python:
Leo (which is a folding editor for literate programming)

* but I already overcome most of the Zope shock...

Best,
Miklós
--
E-mail: base64.decodest ring('cHJpc3pAY XN5bHVtdGVsLmNv bQ==\n')
Jul 18 '05 #8
PF

I have started with SkunkWeb and it's incredibly powerful.
The template language is great, it has a lot of useful modules, and it
doesn't get in the way when I want to use other packages. The way it cuts
things in components and modules makes it really easy to reuse your code
bits.
Plus, it's very very fast. My PC generates 200 KB of html in about 60
milliseconds, all of it being dynamic.
On the downside, documentation is scarce, but what there is is well done.

Zope is impossible to use.

MySQL kinda sucks. No transactions... what can you do with a database
with no transactions... no foreign keys... no integrity constraints... no
"insert or update"... it has AMATEUR written all over it... I like
postgresql much better. plsql sucks but stored procedures are faster than
making a pile of requests.

Anyway, have fun !
Jul 18 '05 #9

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

Similar topics

3
1646
by: Varkey | last post by:
Dear friends, I am new to .NET based app development and have a pretty elementary query, I suppose... I have caught up with the basics of .NET pretty well, thanks to some Microsoft VB/ASP background and helpful colleagues... The query goes... In a DOTNET based desktop application environment, does it make sense to have each copy of the installed application from the different
6
10320
by: pekspro | last post by:
I need some code that gets the address from a server. I read somewhere that you could do this by starting some broadcast server using UDP. The client should send an broadcast message, and when the server answering the client gets the address. But how do I implement this? I did this simple quick-hack: Server: Socket server = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
1
1320
by: keith russell | last post by:
Hi, I just transferred to another location at my company and am attempting to add some newly created webpages to their existing Windows Server 2003 Web Edition. I am new to ASP.Net, but have been coding ASP pages for a couple of years. The previous web admin apparently wasnt using a project file to work out of when he created all of the ASP.Net web pages. (The only instance of a project file that is loaded on the server isnt valid and doesnt...
2
1128
by: Carl Johansen | last post by:
We currently develop ASP.NET 1.1 applications on Windows 2000 Workstation (using the workstation version of IIS5) and run them on W2K Servers, so everything is IIS5. We want to upgrade the servers to II6, but we think the development environment should match the server. Should we upgrade our workstations to Windows 2003? There's no workstation version of that OS. Or should we just upgrade to VS2005 and use its new web server feature? ...
8
2741
by: Woody Splawn | last post by:
I am asking this question here because I asked this question in the Reporting Services Newsgroup and did not get an answer. Does anyone know if Reporting Services is intended to work in a client/Server or Local machine environment? Based on what I have seen my guess is yes but that is a guess. In some materal it talks about it running on a web server but my supposition is that this does not necessarily mean that it would not make for a...
0
2225
by: Charles Leonard | last post by:
I am having yet another issue with Windows Server 2003. This time, the web service (a file import web service) appears to run except for one odd message: "ActiveX component can't create object". There are no other statements to indicate what object cannot be created. Otherwise, everything on the test Windows Server 2003 works fine—all import data updates correctly. Unfortunately, my normal development environment is not Windows...
1
3353
by: lucifer | last post by:
hi, i am creating an simple http server ie it serves only static pages . u can compile the code then use ur browser if it is IE then the it shows the page but the http header is also shown HTTP/1.0 200 OK Content-Type: text/html nweb Web Server Sorry: but if the browser is mozilla/Firefox it shows the recieved data as an application and tells me to save it. also i want that the program should continiously listen on the port and send...
2
2954
by: lucifer | last post by:
hi, i am creating an simple http server ie it serves only static pages . u can compile the code then use ur browser if it is IE then the it shows the page but the http header is also shown HTTP/1.0 200 OK Content-Type: text/html nweb Web Server Sorry: but if the browser is mozilla/Firefox it shows the recieved data as an application and tells me to save it. also i want that the program should continiously listen on the port and
4
3274
by: Geoff Lane | last post by:
Development environment: Windows 2003 Server running IIS6 and the same server running as a domain controller, DNS and DHCP servers. Production environment: Windows 2000 Server SP4 running IIS5 and not used to provide domain control or name services. The two environments are on different networks with no trust relationship between them. In both environments the web server is set up to disallow anonymous access and to use integrated...
0
1512
by: 85ssp | last post by:
I am creating a small server client program that is meant for up to 70 connections from 70 different computers on a network. Everything in the program functions correctly except when testing operations with a server crash, the clients go into a disconnected state and wait for the server to come back up. Once the server is up the clients attept to connect. 75% of the time all clients connect and there connect message is accepted and...
0
8608
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8540
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8803
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8806
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6459
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5820
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4324
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2241
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1959
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.