Skip to main content

Yet another WSGI Paste factory for paste

Project description

Introduction

Yet another pastes factories for django and werkzeug

What is dj.paste

It is just another wsgi wrappers:

  • one for django, it even allows you to have multiple djangos in the same paster.

  • one for getting an app factory for werkzeug’s DebuggedApplication

How to use dj.paste

Django App

With paste, just add another app entry with a django_settings_module variable to point to your django settings

[composite:main]
use = egg:Paste#urlmap
/ = foo

[app:foo]
use=egg:dj.paste
django_settings_module=foo.settings

DebuggedApplication App

With paste, just add another filter entry and enable debug::

[DEFAULT]
debug=true
[composite:main]
use = egg:Paste#urlmap
/ = p
[pipeline:p]
pipeline =  exc
            foo

[app:foo]
use=egg:dj.paste
django_settings=foo.settings

[filer:exc]
use=egg:dj.paste#debug

DOCTESTS

django factory

Checking that everything is in place:

>>> resp = app.get('/')
>>> 'first django' in resp.body.lower()
True

Changelog

1.3 - 1.4

  • fix multiple djangos in the same paste instance

1.2

1.0

  • 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

dj.paste-1.4dev.tar.gz (9.1 kB view details)

Uploaded Source

File details

Details for the file dj.paste-1.4dev.tar.gz.

File metadata

  • Download URL: dj.paste-1.4dev.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for dj.paste-1.4dev.tar.gz
Algorithm Hash digest
SHA256 425de4405d04d270da9bf80e4b2068a88a6ae0f75ce39d9c6095187e05bff205
MD5 0912ee9e3c311222d901260df087a68d
BLAKE2b-256 81705be79ecf8399c7af1c1ed5a0cbc92225dd42c43b7f35dbdbc5f78a6cc8db

See more details on using hashes here.

Supported by

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