Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.030 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'subject:form': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'rewrite': 0.09; 'kern': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'sessions,': 0.16; 'simpson': 0.16; 'subject:pass': 0.16; 'templating': 0.16; 'underlying': 0.16; 'applies': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'library': 0.18; 'addition,': 0.20; 'written': 0.21; 'code,': 0.22; 'header :User-Agent:1': 0.23; 'frameworks': 0.24; 'interpret': 0.24; 'handling': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In- Reply-To:1': 0.27; 'external': 0.29; 'robert': 0.30; 'code': 0.31; 'easier': 0.31; 'framework': 0.33; 'data,': 0.36; 'templates': 0.36; 'area': 0.37; 'to:addr:python-list': 0.38; 'explain': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'services,': 0.61; 'simple': 0.61; 'our': 0.64; 'connecting': 0.64; 'pick': 0.64; 'provide': 0.64; 'different': 0.65; 'world': 0.66; 'managing': 0.66; 'believe': 0.68; '8bit%:92': 0.71; 'browser.': 0.78; 'eco': 0.84; 'pools': 0.84; 'subject:Making': 0.84; 'terrible': 0.84; 'engines.': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Robert Kern Subject: Re: Making a pass form cgi => webpy framework Date: Fri, 28 Jun 2013 10:35:54 +0100 References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Gmane-NNTP-Posting-Host: 213.1.240.226 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 28 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1372412165 news.xs4all.nl 15932 [2001:888:2000:d::a6]:41757 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:49364 On 2013-06-28 04:38, Νίκος wrote: > Στις 28/6/2013 2:08 πμ, ο/η Cameron Simpson έγραψε: >> Pick a simple framework or templating engine and try it. I have no >> recommendations to make in this area myself. > > Can you explain to me the difference of the former and latter? A templating engine takes your data and applies it to templates that you have written to generate the final HTML that is sent to the web browser. A web framework is a library that provides tools and a way of structuring your that makes it easier to write a web application. Web frameworks typically include a templating engine or provide support for working with external templating engines. In addition, web frameworks provide many other services, like routing URLs to specific parts of your code, managing pools of database connections, handling web sessions, validating form data, and connecting your code to many different ways of deploying web applications without having to rewrite your code. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco