for web application development

J

james_027

hi everyone,

I am very new to python, I am almost done learning the python language
enough that I can start learning developing web app in python. I have
gone thru many research and I still say that I will want to develop
web app in python. Although some says php should be better since the
language is made for the web compare to python. In the point of view
of rails, they say that their framework is really easy and best for
web app.

My problem is looking for a web framework for python, that could
provide a natural way of developing web app. I am avoiding to learn
template language as much as possible.

Any advice will be greatly appreciated.

THanks
james
 
G

Giuseppe Di Martino

Il Thu, 14 Jun 2007 09:16:24 +0000, james_027 ha scritto:
My problem is looking for a web framework for python, that could
provide a natural way of developing web app. I am avoiding to learn
template language as much as possible.

Currently, i'm playing with Pylons (http://pylonshq.com) and until now i'm
happy !

Giuseppe
 
B

Benedict Verheyen

james_027 schreef:
hi everyone,

I am very new to python, I am almost done learning the python language
enough that I can start learning developing web app in python. I have
gone thru many research and I still say that I will want to develop
web app in python. Although some says php should be better since the
language is made for the web compare to python. In the point of view
of rails, they say that their framework is really easy and best for
web app.

My problem is looking for a web framework for python, that could
provide a natural way of developing web app. I am avoiding to learn
template language as much as possible.

Any advice will be greatly appreciated.

THanks
james


I use Django and it's easy to use.
http://www.djangoproject.com/

Regards,
Benedict
 
T

Thomas Wittek

james_027:
My problem is looking for a web framework for python, that could
provide a natural way of developing web app.

The three bigger Python web frameworks seem to be:

- Django: http://www.djangoproject.com/
- TurboGears: http://www.turbogears.org/
- Pylons: http://pylonshq.com/

I only tried them briefly.

Django has its own componentes for almost everything (templating, ORM,
routing) and feels thus very integrated and solid.

TurboGears tries to use independent components like Kid, SQLObject and
CherryPy, which you can easily change to you own favorites. So you have
more flexibility, but also a bit more complexity.

Pylons is similar to TurboGears as it also uses independent components,
that are by some people consideres more "modern". By default it uses
SQLAlchemy for ORM and Routes for routing/dispatching.
It also incorporates the Python WSGI standard for web apps.
For me it felt least integrated of those frameworks but it may have the
biggest future potentials.

You may take a look at those comparisons:
http://jesusphreak.infogami.com/blog/vrp1
http://www.ibm.com/developerworks/linux/library/l-django/
http://www.ibm.com/developerworks/linux/library/l-turbogears/
I am avoiding to learn
template language as much as possible.

You will need a templating language to put out your HTML.
Of course that will not be a full programming language like PHP.
 
L

Laurent Pointal

james_027 a écrit :
hi everyone,

I am very new to python, I am almost done learning the python language
enough that I can start learning developing web app in python. I have
gone thru many research and I still say that I will want to develop
web app in python. Although some says php should be better since the
language is made for the web compare to python. In the point of view
of rails, they say that their framework is really easy and best for
web app.

My problem is looking for a web framework for python, that could
provide a natural way of developing web app. I am avoiding to learn
template language as much as possible.

Near the big ones (Django, TurboGears, Pylons), you may take a look at
Karrigell:
http://karrigell.sourceforge.net/en/front.htm

(se examples)
 
E

Evan Klitzke

My problem is looking for a web framework for python, that could
provide a natural way of developing web app. I am avoiding to learn
template language as much as possible.

You should definitely reconsider avoiding templates -- it's hard to
imagine building a reasonably large webapp that didn't use them at
all. Cheetah templates are a really, really good Python framework for
writing templates, and the templates themselves that can use
Python-like constructs, which make them pretty powerful.

The standard way to do web programming in Python would of course be
using something that ties into mod_python, but WSGI[1] has been
brought into the language as of Python 2.5. Between Cheetah templates
and the WSGI modules, you can put together a simple lightweight web
framework in a couple hundred lines (or less) of Python. For my own
personal website I threw together a really simple Python "framework"
that runs as a daemon and uses WSGI and Cheetah templates, and it all
ended up being only 150 lines of code, so I think this is a fairly
good solution if you don't envision a huge/complex site. If you want
to build a a much bigger site you should obviously look into the other
frameworks that are available, particularly Django.

[1] http://www.python.org/dev/peps/pep-0333/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top