Lines Matching full:web
2 HOWTO Use Python in the web
9 This document shows how Python fits into the web. It presents some ways
10 to integrate Python with a web server, and general practices useful for
11 developing web sites.
14 Programming for the Web has become a hot topic since the rise of "Web 2.0",
15 which focuses on user-generated content on web sites. It has always been
16 possible to use Python for creating web sites, but it was a rather tedious task.
19 some of the methods used to combine Python with a web server to create
26 While this HOWTO tries to give an overview of Python in the web, it cannot
27 always be as up to date as desired. Web development in Python is rapidly
28 moving forward, so the wiki page on `Web Programming
36 When a user enters a web site, their browser makes a connection to the site's
37 web server (this is called the *request*). The server looks up the file in the
41 Dynamic web sites are not based on files in the file system, but rather on
42 programs which are run by the web server when a request comes in, and which
47 support Python, it is easy to use Python to create dynamic web sites.
55 Not every web server supports every interface. Many web servers only support
64 supported by nearly every web server out of the box. Programs using CGI to
65 communicate with their web server need to be started by the server for every
96 To test whether your web server works with CGI, you can use this short and
111 Depending on your web server configuration, you may need to save this code with
127 If you don't have your own web server, this does not apply to you. You can
129 administrator of your web server. If it is a big host, you can try filing a
134 way to configure CGI, as there are many web servers with different
135 configuration options. Currently the most widely used free web server is
140 installed using the package management tool, so manually compiling the web
163 executable most web servers will let the user download it, instead of
169 style line endings. This is important because the web server checks the
178 * Your web server must be able to read the file, and you need to make sure the
184 * The web server must know that the file you're trying to access is a CGI script.
185 Check the configuration of your web server, as it may be configured
191 ``/usr/bin/env``, or if Python is not in the web server's path. If you know
202 * If the web server is using :ref:`mod-python`, ``mod_python`` may be having
212 People coming from PHP often find it hard to grasp how to use Python in the web.
227 require the web server to be restarted. Another problem is the basic concept
230 not use it. This makes the whole web server slower. Another problem is that,
234 web server, so programs written for ``mod_python`` cannot easily run on other
235 web servers.
247 Instead of embedding the interpreter into the web server, they create
248 long-running background processes. There is still a module in the web server
249 which makes it possible for the web server to "speak" with the background
255 just a "simpler FastCGI". As the web server support for SCGI is limited,
267 Each web server requires a specific module.
322 into the Apache web server. mod_wsgi is specifically designed to host WSGI
325 is that mod_wsgi is limited to the Apache web server; other servers would need
342 The *Web Server Gateway Interface*, or WSGI for short, is defined in
343 :pep:`333` and is currently the best way to do Python web programming. While
344 it is great for programmers writing frameworks, a normal web developer does not
345 need to get in direct contact with it. When choosing a framework for web
351 program can be deployed via any web server interface for which there are WSGI
355 server, :mod:`wsgiref`, which is a small web server that can be used for
372 many problems that might arise while developing web sites.
385 There are many servers already available, so a Python web application
387 compared with other web technologies.
405 What does WSGI give the web application developer? Let's take a look at
425 any particular API. Many web frameworks use this model to help the developer
426 bring structure to their program. Bigger web applications can have lots of
448 maintainable web sites.
453 to create a web site which uses the MVC pattern by separating the data logic
463 list of web frameworks for various programming languages.
469 Websites are complex constructs, so tools have been created to help web
471 these exist for all web frameworks in all languages. Developers are not forced
474 developing a web site.
481 `Web Components <https://wiki.python.org/moin/WebComponents>`_.
539 information on a web server.
560 but can be difficult to get right if the web site is performing many
601 The process of creating code to run web sites involves writing code to provide
603 same way regardless of the complexity or purpose of the web site in question.
605 "frameworks" for web development. Perhaps the most well-known framework for
606 web development is Ruby on Rails, but Python has its own frameworks. Some of
610 Originally Python web frameworks tended to incorporate all of the services
611 needed to develop web sites as a giant, integrated set of tools. No two web
614 to the development of "minimalist" web frameworks that provided just the tools
621 Since the advent of WSGI, the Python web framework world has been evolving
622 toward interoperability based on the WSGI standard. Now many web frameworks,
624 complex web sites) or minimalist, or anything in between, are built from
630 and provide the easiest path to producing a fully functional web site in
652 which make it possible to create web sites almost without writing any Python code.
655 web sites. There are also a lot of add-on projects which extend Django's normal
671 Another popular web framework for Python is `TurboGears
686 the WSGI stack of another popular component-based web framework, `Pylons
731 The Python wiki contains an extensive list of `web frameworks
735 for these on the projects' web sites.