Skip to main content

tranchitella.recipe.wsgi

This recipe creates a paste.deploy entry point for mod_wsgi.

Usage

This is a minimal ‘’buildout.cfg’’ file which creates a WSGI script mod_wsgi can use:

[buildout]
parts = wsgi

[wsgi]
recipe = tranchitella.recipe.wsgi
eggs = myapplication
config-file = ${buildout:directory}/etc/deploy.ini
environ =
    CHAMELEON_CACHE=true
    CHAMELEON_STRICT=true

This will create a small python script in the bin directory called ‘’wsgi’’ which mod_wsgi can load. You can also use the optional ‘’extra-paths’’ option to specify extra paths that are added to the python system path.

You may also use the ‘’script-name’’ option to specify the name of the generated script file, if ‘’wsgi’’ is unsuitable.

The apache configuration for this buildout looks like this::

WSGIScriptAlias /mysite /path/to/buildout/bin/wsgi

<Directory /home/me/buildout>
    Order deny,allow
    Allow from all
</Directory>

This recipe does not fully install packages, which means that console scripts will not be created. If you need console scripts you can add a second buildout part which uses zc.recipe.egg to do a full install.

Changes

0.4 (2010-04-26)

  • Removed dependency on Chameleon.

  • Defaults to the part name for the script name instead of “wsgi”.

  • Added tests.

0.3 (2010-04-09)

  • Add a script-name option to specify the name of the wsgi script to generate. (Dan Fairs, dan@fezconsulting.com)

  • Fix a bug where ‘None’ would appear in the generated file if no environ was specified. (Dan Fairs, dan@fezconsulting.com)

0.2 (2010-04-06)

  • Install again on update, otherwise the wsgi script is not updated unless it is explicitly removed.

0.1 (2010-02-17)

  • First public release.

Release files for tranchitella.recipe.wsgi 0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tranchitella.recipe.wsgi 0.4
File Size Uploaded
tranchitella.recipe.wsgi-0.4.tar.gz 12.0 kB Details

Release files / tranchitella.recipe.wsgi-0.4.tar.gz

Download URL tranchitella.recipe.wsgi-0.4.tar.gz
Size 12.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e8b0e9bf5dcc98c8bc28520120dd1fc3af984d6492616b8276ac55fe430f2f28
BLAKE2b-256 checksum
How to use checksums
0047a7069788511d2f5273dbf8d80503e4ec82caae4824debfb2b2db37c42099
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.4 This release

1 release file

0.3

1 release file

0.2

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page