• Home
  • Raw
  • Download

Lines Matching +full:libpython +full:- +full:dev

15 which focuses on user-generated content on web sites.  It has always been
33 The Low-Level View
50 directly -- a bridge is needed between the server and the program. These
56 old, now-obsolete interfaces; however, they can often be extended using
57 third-party modules to support newer ones.
61 ------------------------
66 request. So, every request starts a new Python interpreter -- which takes some
67 time to start up -- thus making the whole interface only usable for low load
70 The upside of CGI is that it is simple -- writing a Python program which uses
84 * :mod:`cgi` -- Handling of user input in CGI scripts
85 * :mod:`cgitb` -- Displays nice tracebacks when errors happen in CGI
100 # -*- coding: UTF-8 -*-
106 print "Content-Type: text/plain;charset=utf-8"
113 in a ``cgi-bin`` folder, for security reasons.
120 display proper error pages -- end-users don't like to see nondescript "Internal
128 check whether it works as-is, and if not you will need to talk to the
165 properly on Unix-like operating systems, the ``+x`` bit needs to be set.
168 * On a Unix-like system, The line endings in the program file must be Unix
179 permissions are correct. On unix-like systems, the server often runs as user
180 and group ``www-data``, so it might be worth a try to change the file
188 * On Unix-like systems, the path to the interpreter in the shebang
193 commands ``whereis python`` and ``type -p python`` could help you find
198 determining the byte order of UTF-16 and UTF-32 encodings, but some editors
199 write this also into UTF-8 files. The BOM interferes with the shebang line,
202 * If the web server is using :ref:`mod-python`, ``mod_python`` may be having
207 .. _mod-python:
210 ----------
228 -- Apache starts child processes to handle the requests, and unfortunately
231 because ``mod_python`` is linked against a specific version of ``libpython``,
244 ----------------
248 long-running background processes. There is still a module in the web server
271 has some licensing issues, which is why it is sometimes considered non-free.
283 following WSGI-application::
286 # -*- coding: UTF-8 -*-
293 start_response('200 OK', [('Content-Type', 'text/html')])
310 <https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/>`_, most of
311 which can be reused for other WSGI-compliant frameworks and libraries.
317 --------
329 Apache process, and daemon mode, which is more FastCGI-like. Unlike FastCGI,
330 mod_wsgi handles the worker-processes by itself, which makes administration
349 interface. When your program is compatible with WSGI -- which at the outer
350 level means that the framework you are using has support for WSGI -- your
353 mod_python or FastCGI or mod_wsgi -- with WSGI your application will work on
365 the unique parts of your application. The same thing with compression -- there
376 ------------
383 written in C and can be used as drop-in replacements.
391 A good overview of WSGI-related code can be found in the `WSGI homepage
396 You might be interested in some WSGI-supporting modules already contained in
399 * :mod:`wsgiref` -- some tiny utilities and servers for WSGI
403 --------------------
416 Unlike the pre-WSGI versions, this could include WSGI servers that the
420 Model-View-Controller
429 not Python-specific) can easily understand the code, given that they are
436 an object-relational mapper.
456 Python code in the templates -- it works against the MVC model and creates
461 The English Wikipedia has an article about the `Model-View-Controller pattern
485 ---------
504 To generate complex HTML based on non-trivial model data, conditional
509 or without a `framework`_. Some of these define a plain-text programming
529 ever-growing number of these. The three listed above are considered "second
534 ----------------
553 <https://en.wikipedia.org/wiki/Object-relational_mapping>`_ (Object Relational
554 Mapping). ORM translates all object-oriented access into SQL code under the
585 * `SQLAlchemy <http://www.sqlalchemy.org/>`_, the most powerful OR-Mapper
589 * `SQLObject <http://www.sqlobject.org/>`_, another popular OR-Mapper
592 <https://www.mems-exchange.org/software/>`_, two object oriented
605 "frameworks" for web development. Perhaps the most well-known framework for
613 deployed on a different one without considerable re-engineering work. This led
635 -----------------------
648 the data in the database with a browser. The template engine is text-based and
655 web sites. There are also a lot of add-on projects which extend Django's normal
663 Although Django is an MVC-style framework, it names the elements
665dev/faq/general/#django-appears-to-be-a-mvc-framework-but-you-call-the-controller-the-view-and-the
685 of WSGI support and a component-based architecture. TurboGears 2 is based on
686 the WSGI stack of another popular component-based web framework, `Pylons
694 incarnation in Zope2 is a tightly integrated full-stack framework. One of its
699 vice-versa. To solve this problem the Zope 3 effort was started. Zope 3
700 re-engineers Zope as a set of more cleanly isolated components. This effort
726 And that's still not everything. The most up-to-date information can always be