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


Groups > comp.lang.python > #49178

Re: Making a pass form cgi => webpy framework

References (1 earlier) <2978d13b-ca0d-4f3b-bd62-a2fcf346c46a@googlegroups.com> <kq73fg$51m$2@news.grnet.gr> <6624335b-0db7-48d8-897c-be7c960a253b@googlegroups.com> <kq889f$vnl$1@news.grnet.gr> <eeff0fca-7fbc-47a3-bda4-23d57cb3f48a@googlegroups.com>
Date 2013-06-25 14:53 -0400
Subject Re: Making a pass form cgi => webpy framework
From Joel Goldstick <joel.goldstick@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.3841.1372186393.3114.python-list@python.org> (permalink)

Show all headers | View raw


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

On Tue, Jun 25, 2013 at 2:00 PM, <rurpy@yahoo.com> wrote:

> On 06/23/2013 07:44 PM, Νίκος wrote:> Why use mako's approach which
> requires 2 files(an html template and the
> > actual python script rendering the data) when i can have simple print
> > statements inside 1 files(my files.py script) ?
> > After all its only one html table i wish to display.
>
> Good question.  Sometimes your way is best.
>
> The main advantage of using templates is that the template contains
> only html (mostly) and the cgi code contains only python (mostly).
>
> The idea is that you can look at the template and see only the
> kind of code (html) that affects how the page looks.  With some
> template systems you can edit the template files with a html
> editor and do the page design visually.  Even in a text editor
> it is usually easier to see the how the html "works" without
> spurious stuff like code.
>
> And when you look at the cgi code, you see only the Python code
> that is needed to get the variable data that is displayed in the
> page without the distraction of a lot of html stuff.
> --
> http://mail.python.org/mailman/listinfo/python-list
>

I haven't tried webpy but I have used django.  django has a tutorial that
takes a couple of hours to set up and go through completely.  Its not just
reading, its hands on trying out a small website.  It gives a very good
understanding of what the framework offers, and how difficult (or easy!) it
is to use.  If webpy has a similar tutorial, I would start there, or try
django.  After the tutorial, the discussion becomes a lot more concrete and
less theoretical as to whether that platform would be helpful

-- 
Joel Goldstick
http://joelgoldstick.com

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Making a pass form cgi => webpy framework Νίκος <nikos@superhost.gr> - 2013-06-23 16:01 +0300
  Re: Making a pass form cgi => webpy framework rurpy@yahoo.com - 2013-06-23 07:57 -0700
    Re: Making a pass form cgi => webpy framework Νίκος <nikos@superhost.gr> - 2013-06-23 18:15 +0300
      Re: Making a pass form cgi => webpy framework rurpy@yahoo.com - 2013-06-23 15:29 -0700
        Re: Making a pass form cgi => webpy framework Νίκος <nikos@superhost.gr> - 2013-06-24 04:44 +0300
          Re: Making a pass form cgi => webpy framework Michael Torrie <torriem@gmail.com> - 2013-06-23 22:37 -0600
            Re: Making a pass form cgi => webpy framework rusi <rustompmody@gmail.com> - 2013-06-23 21:49 -0700
            Re: Making a pass form cgi => webpy framework Νίκος <nikos@superhost.gr> - 2013-06-24 10:32 +0300
              Re: Making a pass form cgi => webpy framework rusi <rustompmody@gmail.com> - 2013-06-24 08:51 -0700
          Re: Making a pass form cgi => webpy framework rurpy@yahoo.com - 2013-06-25 11:00 -0700
            Re: Making a pass form cgi => webpy framework Joel Goldstick <joel.goldstick@gmail.com> - 2013-06-25 14:53 -0400
              Re: Making a pass form cgi => webpy framework Νίκος <nikos@superhost.gr> - 2013-06-26 08:31 +0300
            Re: Making a pass form cgi => webpy framework Νίκος <nikos@superhost.gr> - 2013-06-27 16:32 +0300
              Re: Making a pass form cgi => webpy framework Cameron Simpson <cs@zip.com.au> - 2013-06-28 09:08 +1000
                Re: Making a pass form cgi => webpy framework Νίκος <nikos@superhost.gr> - 2013-06-28 06:38 +0300
                Re: Making a pass form cgi => webpy framework Robert Kern <robert.kern@gmail.com> - 2013-06-28 10:35 +0100
                Re: Making a pass form cgi => webpy framework Νίκος <nikos@superhost.gr> - 2013-06-28 13:15 +0300
                Re: Making a pass form cgi => webpy framework Robert Kern <robert.kern@gmail.com> - 2013-06-28 11:30 +0100
                Re: Making a pass form cgi => webpy framework rusi <rustompmody@gmail.com> - 2013-06-28 07:28 -0700

csiph-web