Hi All
I want to build an Website using Apache / Python and MySQL.
I dont want to spend to much time hacking html. I'm looking for some
recommendations
e.g. should I be using mod_python ?
whats the best module for mysql ?
any suggestings so I could get my site up in a day ? mv*********@gma il.com 12 2969
vpr wrote: Hi All
I want to build an Website using Apache / Python and MySQL.
Good choice, good choice, bad choice...
Why not using PostgresSQL (if you need a *real* RDBMS) or SQLite (if you
don't...)
I dont want to spend to much time hacking html. I'm looking for some recommendations e.g. should I be using mod_python ?
mod_python is mostly a 'low-level' Apache API binding. Better use a
higher-level tool on top of it. AFAICT, Myghty might be of some help here.
whats the best module for mysql ?
Psycopg ?-)
oops, sorry....
any suggestings so I could get my site up in a day ?
Look for Myghty, Pylons (built on Mygthy), or Django. There's also
Turbogears, but it's based on CherryPy, so you won't really take
advantage of mod_python's Apache integration.
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'o****@xiludom. gro'.split('@')])"
vpr enlightened us with: I want to build an Website using Apache / Python and MySQL.
I second Bruno: swap MySQL in favour of PostgreSQL.
e.g. should I be using mod_python ?
You could use my framework based on mod_python and Cheetah. I find it
really easy to use. Check out http://www.unrealtower.org/webengine
whats the best module for mysql ?
I'd use SQLObject. It can handle MySQL (if you really want to stick to
it), SQLite and PostgreSQL.
Sybren
--
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself?
Frank Zappa
On Tue, 14 Feb 2006 10:32:34 +0100, Sybren Stuvel wrote
(in article <sl************ **********@schu imige.unrealtow er.org>): I second Bruno: swap MySQL in favour of PostgreSQL.
And the reason is ?? (apart from PostgreSQL being larger and more complete,
what are the differences for "simple" usage?)
jem
Kalle Anke wrote: On Tue, 14 Feb 2006 10:32:34 +0100, Sybren Stuvel wrote (in article <sl************ **********@schu imige.unrealtow er.org>):
I second Bruno: swap MySQL in favour of PostgreSQL.
And the reason is ?? (apart from PostgreSQL being larger and more complete, what are the differences for "simple" usage?)
The reason is mostly that either you need a real, full-blown, rock-solid
RDBMS - which MySQL is definitively not - or you dont - in which case
SQLite is probably a much more lightweight and agile solution.
My 2 cents
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'o****@xiludom. gro'.split('@')])"
On Tue, 14 Feb 2006 11:19:11 +0100, bruno at modulix wrote
(in article <43************ **********@news .free.fr>): The reason is mostly that either you need a real, full-blown, rock-solid RDBMS - which MySQL is definitively not - or you dont - in which case SQLite is probably a much more lightweight and agile solution.
Stupid questions (I know very little about databases):
I always thought that a SQLlite database "belonged" to a single process, can
a database be used by several processes?
Let's say I would build a small web application that would be used by a small
number of people/processes and it wouldn't be anything fancy just basic
"selects". What would be the choice for this?
What about speed? I've always had the impression that while PostgreSQL is
more complete than MySQL it's also slower.
Sorry, if these are really stupid questions but ...
jem
Kalle Anke wrote: I always thought that a SQLlite database "belonged" to a single process, can a database be used by several processes?
Depending on what you mean by "belong", that's either true or false.
Certainly multiple processes can access a SQLite database, although as
the documentation clearly describes if those processes are making
_frequent updates_ it's not the best solution and another database might
be more suitable.
Let's say I would build a small web application that would be used by a small number of people/processes and it wouldn't be anything fancy just basic "selects". What would be the choice for this?
SQLite. (As but one option, but "just basic selects" is certainly
included in the set of suitable conditions for SQLite use.)
What about speed? I've always had the impression that while PostgreSQL is more complete than MySQL it's also slower.
Don't optimize prematurely? If you use something like SQLObject, or any
other means of abstracting yourself away from the details of a specific
datbase, you won't be particularly tied to it if you decide you need
improved performance, or sophistication, or whatever.
Sorry, if these are really stupid questions but ...
They're not.
Kalle Anke enlightened us with: What about speed? I've always had the impression that while PostgreSQL is more complete than MySQL it's also slower.
For simple queries, I believe (no real knowledge here) MySQL is indeed
faster. One of the problems I have with MySQL is that it doesn't
support foreign keys nor transactions on the default table format.
Sybren
--
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself?
Frank Zappa
On Tue, 14 Feb 2006 12:04:45 +0100, Peter Hansen wrote
(in article <ma************ *************** ************@py thon.org>): SQLite. (As but one option, but "just basic selects" is certainly included in the set of suitable conditions for SQLite use.)
I've considered to use SQLite for an application but for completely different
reasons ... hmm, I should perhaps consider SQLite for some other ideas I have
also ...
Don't optimize prematurely? If you use something like SQLObject, or any other means of abstracting yourself away from the details of a specific datbase, you won't be particularly tied to it if you decide you need improved performance, or sophistication, or whatever.
That's true ... I was thinking in general terms here (a couple of people I
know handles huge data sets, genome data type of things, and in their case
speed is very important)
Just a few comments...
Database:
As with anything else, try to keep it simple until you need to make it
complex.
Sqlite is the simplier alternative, and it's also the fastest for the
intended use (small number of users, simple selects, etc). MySQL is
also a very good alternative and much more powerful.
Mod_python:
Mod_python is the best choice (AFAIK, please correct me if I'm wrong)
if you want speed, performance and scalability. Many frameworks are
based on mod_python (Django, for example), so you can't go wrong with
it.
But let me tell you that if you just want to use bare-bones mod_python,
without any framework on top of it, you can do it, and it's not
difficult at all.
Mod_python comes with its own implementation of PSP (python server
pages), which lets you program a la PHP (intermingling python and
html).
If you want, you can also separate logic and presentation by using its
"publisher handle" along with PSP templates. If you prefer other kinds
of templetaing system, you can use them too (for example Cheetah).
For a long time I steered away of mod_python because I had the
impression it was too difficult and not user friendly enough, what once
I tried and followed the examples in the documentation, I found it to
be a very good alternative.
And the community on its mailing list is very kind and supportive. They
reply any question in a matter of minutes. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Catalin |
last post by:
Can Python replace PHP?
Can I use a python program to make an interface to a mysql 4.X database?
If that's possible where can I find a tutorial?
|
by: Sig |
last post by:
Hi there,
Could you help me finding out whether Zope could be a serious
technological framework for big corporation (compared to J2EE and
..Net) or not ?
In the (quite very) big corporation I work in, the IT managers are
wondering about the future of web technologies for our intranets.
Currently, we run web applications in many technologies : heavy J2EE
(EJB...), light J2EE (JSP), ASP.Net, ASP, PHP, ... Our big IT boss
|
by: Patrick Useldinger |
last post by:
Hi all,
after my unsuccessful try to run Apache 2 with mod_python and Python
2.3, I am looking for an alternative approach.
My aim is to write a small web-based application:
Python
- the solution must be based / usable on Python 2.3
Portability
Targeted plaforms are
|
by: mir nazim |
last post by:
i m currently using PHP with Apache (a.k.a 'mod_php') for my web
development work. i came to know that python can also be used to do
web programming using 'mod_python' for Apache. i wanted to know the
difference between th two 'mod_php' and 'mod_python' in terms of:
1. speed of execution.
2. productivity
3. maintainance
(i know python is most productive and maintainable language in the
world, but is it same for web programming with...
|
by: Andrew Dalke |
last post by:
Is there an author index for the new version of the
Python cookbook? As a contributor I got my comp version
delivered today and my ego wanted some gratification.
I couldn't find my entries.
Andrew
dalke@dalkescientific.com
| |
by: bruce |
last post by:
Hi...
Update....
We have the following setup in our httpd.conf file. We've tried to give
what's related to the issue. We're trying to set up a virtual host for a
test project. The behavior that we're seeing is that we can type:
http://foo.com but the url that gets displayed is
|
by: callmebill |
last post by:
I'm getting my feet wet with making Python talk to MySQL via ODBC. I
started on Windows, and it went smoothly enough due to the ODBC stuff
that apparently is native to Python at least on windows (I've been
following ch. 13 of Mark Hammond's py on win32 book).
But now I'm trying to do equivalent stuff on linux (Fedora Core 3) with
python 2.3.5 and mysql. I'd like to stick with packages that are
native to python, rather than relying on...
|
by: John Nagle |
last post by:
The major complaint I have about Python is that the packages
which connect it to other software components all seem to have
serious problems. As long as you don't need to talk to anything
outside the Python world, you're fine. But once you do, things
go downhill. MySQLdb has version and platform compatibility
problems. So does M2Crypto. The built-in SSL support is weak.
Even basic sockets don't quite work right; the socket module...
|
by: Con |
last post by:
Hi, how does properly install the Python MySQL db module for Mac OS
X? I was only able to locate the Win32 modules.
Thanks in advance,
-Conrad
|
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...
|
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,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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,...
|
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...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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();...
|
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...
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |