Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #49178
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!ecngs!feeder2.ecngs.de!novso.com!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <joel.goldstick@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.011 |
| X-Spam-Evidence | '*H*': 0.98; '*S*': 0.00; 'tutorial': 0.03; 'django.': 0.05; 'subject:form': 0.07; 'statements': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'django': 0.11; 'question.': 0.14; 'template': 0.14; 'data)': 0.16; 'email addr:yahoo.com>': 0.16; 'spurious': 0.16; 'stuff.': 0.16; 'subject:pass': 0.16; 'webpy': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'discussion': 0.18; 'variable': 0.18; 'trying': 0.19; 'code,': 0.22; 'cc:addr:python.org': 0.22; 'print': 0.22; 'affects': 0.24; 'helpful': 0.24; "haven't": 0.24; '(or': 0.24; 'cc:2**0': 0.24; 'script': 0.25; '>': 0.26; 'header:In-Reply- To:1': 0.27; 'tried': 0.27; 'idea': 0.28; 'message- id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'gives': 0.31; 'code': 0.31; 'easier': 0.31; 'usually': 0.31; '25,': 0.31; 'cgi': 0.31; 'stuff': 0.32; 'text': 0.33; 'url:python': 0.33; 'becomes': 0.33; 'framework': 0.33; 'actual': 0.34; 'table': 0.34; 'there,': 0.34; 'editor': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'templates': 0.36; 'url:listinfo': 0.36; 'similar': 0.36; 'url:org': 0.36; 'sometimes': 0.38; 'skip:& 10': 0.38; 'needed': 0.38; 'files': 0.38; 'pm,': 0.38; 'use.': 0.39; 'url:mail': 0.40; 'how': 0.40; 'even': 0.60; 'skip:u 10': 0.60; 'simple': 0.61; 'kind': 0.63; 'more': 0.64; 'hours': 0.66; 'rendering': 0.68; 'wish': 0.70; 'theoretical': 0.74; 'to:addr:yahoo.com': 0.81; 'reading,': 0.84; 'subject:Making': 0.84; 'joel': 0.91; 'hands': 0.96; '2013': 0.98 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=B2Z6or4a3omiLqsKcViP0IXFfbCYLidNgdC41NVXjWg=; b=bkL/Z4Hc1o8SCBQkojuE0B7Qx3BbUdO7EY143/Xd5pcl02AS6WslJd2jVlz6hDM0qT s3gbAiRvny6+qoSFJnkpFkvFdRkIIj3VMDZ4EIPIIW0ySpeuKYFWcCdv3Q+yrKNm29Ft OHkfeOb7+ocVKTKy04WzGcc2z3VaoYur9BuNCglQwasEJQU9TupuQeeruSR8UUFoEtqx xtNrsMOqcyyavDgL3p/PDXQvlC2IOIxN7eQNCS4KG+YUfa8E2Z3yy1Tb+YUEu5S2R1HS SL5dcMZlfM2xpUdbjnXTtJFNYPaCVuNCnLs1aATL9deagOnBrTURHAoP9gcalBcc8LxF 5hVg== |
| MIME-Version | 1.0 |
| X-Received | by 10.220.86.202 with SMTP id t10mr184865vcl.74.1372186391273; Tue, 25 Jun 2013 11:53:11 -0700 (PDT) |
| In-Reply-To | <eeff0fca-7fbc-47a3-bda4-23d57cb3f48a@googlegroups.com> |
| References | <kq6rip$51m$1@news.grnet.gr> <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 | Tue, 25 Jun 2013 14:53:11 -0400 |
| Subject | Re: Making a pass form cgi => webpy framework |
| From | Joel Goldstick <joel.goldstick@gmail.com> |
| To | rurpy@yahoo.com |
| Content-Type | multipart/alternative; boundary=001a11c2dca46aeaf104dfff0a01 |
| Cc | "python-list@python.org" <python-list@python.org> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3841.1372186393.3114.python-list@python.org> (permalink) |
| Lines | 93 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1372186393 news.xs4all.nl 15908 [2001:888:2000:d::a6]:53640 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:49178 |
Show key headers only | 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 | Next — Previous in thread | Next in thread | Find similar | Unroll 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