Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #46567 > unrolled thread

How to Begin Web Development with Python ?

Started byChitrank Dixit <chitrankdixit@gmail.com>
First post2013-05-31 07:51 +0530
Last post2013-06-02 19:40 -0700
Articles 4 — 4 participants

Back to article view | Back to comp.lang.python


Contents

  How to Begin Web Development with Python ? Chitrank Dixit <chitrankdixit@gmail.com> - 2013-05-31 07:51 +0530
    Re: How to Begin Web Development with Python ? Giorgos Tzampanakis <giorgos.tzampanakis@gmail.com> - 2013-06-01 13:23 +0000
      Re: How to Begin Web Development with Python ? Modulok <modulok@gmail.com> - 2013-06-01 16:16 -0600
      Re: How to Begin Web Development with Python ? alex23 <wuwei23@gmail.com> - 2013-06-02 19:40 -0700

#46567 — How to Begin Web Development with Python ?

FromChitrank Dixit <chitrankdixit@gmail.com>
Date2013-05-31 07:51 +0530
SubjectHow to Begin Web Development with Python ?
Message-ID<mailman.2469.1369966922.3114.python-list@python.org>

[Multipart message — attachments visible in raw view] — view raw

Hello Python developers

I have learnt python and used it for various purposes for scietific
computing using sage and GUI development using Tkinter and lots more. I
want to start web development using python My goal is to learn the web
development in python from the basic level and understand the big web
development projects like Django , MoinMoin Wiki , Plone  and network
programming further with twisted.

I have found Web2Py to be an easy library to quickly use and develop the
web application. Is there any other library to start my development with.
and
does my plan of learning Web2Py is good for Web development and getting
involved in the big projects like Django , MoinMoin Wiki , Plone.

*Regards
*
*Chitrank Dixit
*
*IIPS-DAVV
*
*Indore (M.P.) , India *
*MCA
*
*trackleech.blogspot.in*

[toc] | [next] | [standalone]


#46662

FromGiorgos Tzampanakis <giorgos.tzampanakis@gmail.com>
Date2013-06-01 13:23 +0000
Message-ID<kocsla$opv$1@dont-email.me>
In reply to#46567
Chitrank Dixit wrote:

> Hello Python developers
>
> I have learnt python and used it for various purposes for scietific
> computing using sage and GUI development using Tkinter and lots more. I
> want to start web development using python My goal is to learn the web
> development in python from the basic level and understand the big web
> development projects like Django , MoinMoin Wiki , Plone  and network
> programming further with twisted.
>
> I have found Web2Py to be an easy library to quickly use and develop the
> web application. Is there any other library to start my development with.
> and
> does my plan of learning Web2Py is good for Web development and getting
> involved in the big projects like Django , MoinMoin Wiki , Plone.
>

I am largely in the same situation as you, i.e. I used Python mostly for
scientific applications, using scipy. I wanted to create a website
to publish my research (see my signature for the result, but keep in
mind it's still work in progress!).

I chose CherryPy as my web framework, largely because it's simple and
gets out of the way. I have found that the documentation can be somewhat
lacking in certain respects but overall it's very easy to do what you
want.

CherryPy does not specify a template library so I chose mako which is
fast and very simple to use. The only problem I had with it was getting
meaningful tracebacks when an exception was raised by the in-template
code, but I was able to rectify it once I read the relevant
documentation section carefully.

Modulok suggested using ORM software. ORM should not really be needed if
you are aiming at scientific content for your application, you should
be fine with straight SQL (many consider ORM a hindrance rather than
help for any project  [1], [2]). But if you do find the need for ORM
then SQLAlchemy is very good and is considered pretty much a de facto
standard in the Python world.

Good luck, and I'm sure comp.lang.python posters will be happy to help
you with any problems you come across!

[1] https://en.wikipedia.org/wiki/Object-relational_mapping#Controversy
[2] http://goo.gl/ECNSp

-- 
www.statsfair.com : Real (statistical) tennis and snooker player rankings and ratings.

[toc] | [prev] | [next] | [standalone]


#46674

FromModulok <modulok@gmail.com>
Date2013-06-01 16:16 -0600
Message-ID<mailman.2531.1370125434.3114.python-list@python.org>
In reply to#46662

[Multipart message — attachments visible in raw view] — view raw

> > I have learnt python and used it for various purposes for scietific
> > computing using sage and GUI development using Tkinter and lots more. I
> > want to start web development using python My goal is to learn the web
> > development in python from the basic level and understand the big web
> > development projects like Django , MoinMoin Wiki , Plone  and network
> > programming further with twisted.
> >
> > I have found Web2Py to be an easy library to quickly use and develop the
> > web application. Is there any other library to start my development with.
> > and
> > does my plan of learning Web2Py is good for Web development and getting
> > involved in the big projects like Django , MoinMoin Wiki , Plone.
> >
>
> Modulok suggested using ORM software. ORM should not really be needed if
> you are aiming at scientific content for your application, you should
> be fine with straight SQL (many consider ORM a hindrance rather than
> help for any project  [1], [2]). But if you do find the need for ORM
> then SQLAlchemy is very good and is considered pretty much a de facto
> standard in the Python world.
>
> Good luck, and I'm sure comp.lang.python posters will be happy to help
> you with any problems you come across!
>
> [1] https://en.wikipedia.org/wiki/Object-relational_mapping#Controversy
> [2] http://goo.gl/ECNSp
>
>
> In SQLalchemy you can use straight SQL, or a database abstraction, or a
full
ORM depending on your needs. The full ORM scared me at first. It was
over-complicated nonsense, black magic and I already had a background in
SQL on
a console. I knew the exact queries I wanted. I didn't need this technical
obfuscation wedged between me and greatness. However the more I used it the
more I started to like it. (Slowly!) It's kind of an acquired taste. It's
not
perfect for everything, but it's usually quite useful once you become
comfortable with it. Even so there are some valid points made against them.

The nice part about SQLalchemy over most other "orm" packages is it doesn't
really care how high or low level you interact with your data. It supports
them
all. You can do a raw SQL query on a cursor if you want. If you need more,
you
can use the database abstraction. Or more still is setting up a full ORM.
You're never locked into anything.

The down side to SQLalchemy however it is a very large library to learn.
There
are books about it alone. For leaner requirements I use psycopg2, simply
because I use postgresql as my data store and it's pretty much the
pythyon/postgresql de-facto standard. Internally this is what SQLalchemy
uses
to access a postgresql database. If you're on MySQL or Oracle or whatever
your
low level package will be different.

What you use depends on your preferred learning style: top-down or
bottom-up.
If you already know SQL the bottom-up approach of learning the low level lib
will serve you well and you'll feel more immediately productive.

Good luck!
-Modulok-

[toc] | [prev] | [next] | [standalone]


#46755

Fromalex23 <wuwei23@gmail.com>
Date2013-06-02 19:40 -0700
Message-ID<cddc7ff1-dca8-4861-816f-78e93b9629af@ks18g2000pbb.googlegroups.com>
In reply to#46662
On Jun 1, 11:23 pm, Giorgos Tzampanakis
<giorgos.tzampana...@gmail.com> wrote:
> Modulok suggested using ORM software. ORM should not really be needed if
> you are aiming at scientific content for your application, you should
> be fine with straight SQL (many consider ORM a hindrance rather than
> help for any project  [1], [2]). But if you do find the need for ORM
> then SQLAlchemy is very good and is considered pretty much a de facto
> standard in the Python world.

SQLAlchemy isn't just an ORM, though. Even more compelling, to me, is
its SQL Expression Language, which allows you to programmatically
write SQL expressions in a cross-database compatible way. It makes it
a lot easier to port your application to another database backend
should it require it. I tend to start projects with a local instance
of sqlite, for example, before migrating to PostGres/Oracle for
production.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web