Skip to main content

WSGI from buildout

Project description

Introduction

‘’collective.recipe.modwsgi’’ is a zc.buildout recipe which creates a paste.deploy entry point for mod_wsgi.

It is very simple to use. This is a minimal ‘’buildout.cfg’’ file which creates a WSGI script mod_python can use:

[buildout]
parts = mywsgiapp

[mywsgiapp]
recipe = collective.recipe.modwsgi
eggs = mywsgiapp
config-file = ${buildout:directory}/production.ini

This will create a small python script in parts/mywsgiapp called ‘’wsgi’’ which mod_python can load.

The apache configuration for this buildout looks like this::

WSGIScriptAlias /mysite /home/me/buildout/parts/mywsgiapp/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 or repoze.recipe.egg to do a full install.

Changelog

1.0b1 - June 13, 2008

  • Initial release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

collective.recipe.modwsgi-1.0b1.tar.gz (2.8 kB view details)

Uploaded Source

File details

Details for the file collective.recipe.modwsgi-1.0b1.tar.gz.

File metadata

File hashes

Hashes for collective.recipe.modwsgi-1.0b1.tar.gz
Algorithm Hash digest
SHA256 32f43f65dcf4e1cd259b5da21d8ae2d9376ead603be95ed9c994af6993a7c6c1
MD5 093feef7ab692da4e2247df8ded286c6
BLAKE2b-256 483c9e39648de0d31ac1946fb5c1360c6946a65b1e3cd94d3a9e7022fd3f9dd6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page