Questions tagged [python-paste]

Python Paste, often simply called paste, is a set of utilities for web development in Python. Paste has been described as "a framework for web frameworks".

Python Paste, often simply called paste, is a set of utilities for web development in Python. Paste has been described as "a framework for web frameworks".

The Python Paste package contains Python modules that help in implementing WSGI middleware.

The package includes a WSGI wrapper for CGI applications. It also includes a simple web server that can produce WSGI requests.

Source:http://en.wikipedia.org/wiki/Python_Paste

7 questions
7
votes
1 answer

Can I have multiple ini config files in Pyramid?

I'd like an equivalent of the Django One True Way settings layout: a shared base file, and then a production file and a development file, each of which import the shared base. Is this possible with Pyramid's config?
Rob Grant
  • 7,239
  • 4
  • 41
  • 61
7
votes
1 answer

what is api-paste.ini file in openstack

I've seen api-paste.ini as a conf file after installing openstack. It looks like substituting some prefixes for python implementation but have no clue about this. Here, my questions are: What script is it? it looks like very bizarre grammar like…
jaeyong
  • 8,951
  • 14
  • 50
  • 63
2
votes
0 answers

Paste.deploy - Is it possible to pass 2 config files?

I'm in the context of a pyramid app, which has a wsgi.py file that looks like this: import os.path import traceback from paste.deploy import loadapp from pyramid.paster import setup_logging DEFAULT_CONF_FILE = "/etc/myconf.conf" config =…
nnaelle
  • 892
  • 1
  • 8
  • 22
2
votes
0 answers

Managing Pyramid configuration files efficiently

Currently I am having production.ini, develop.ini and test.ini for a web application. Most of the INI configuration is copy-paste. I'd like to split off the shared configuration part to base.ini or similar. How Pyramid configuration files can be…
Mikko Ohtamaa
  • 82,057
  • 50
  • 264
  • 435
1
vote
1 answer

Why does Paste ErrorMiddleware throw an exception when I use it with my Python 3 mod_wsgi application?

I am trying to use the ErrorMiddleware included in Python Paste 2.0.3 in order to show tracebacks in the browser when my Python 3.4 mod_wsgi application server throws an exception. The issue I am having is that the ErrorMiddleware is throwing this…
gla3dr
  • 2,179
  • 16
  • 29
0
votes
1 answer

How to escape percent char in Python Paste deploy configuration file?

I have use Python Paste Deploy script to deploy a Flask+Gunicorn project. However, i can not write access_log_format in deploy script with (h)s %(l)s %(u)s %(t)s "%(r)s" %(s)s %(b)s "%(f)". Because we %(h)s format has special meaning in Paste Deploy…
andy
  • 3,951
  • 9
  • 29
  • 40
0
votes
0 answers

Accessing global configuration of another middleware directly from a middleware

I am using python-paste for my apps and my middleware and I am trying to access the configuration of other middlewares directly from that middleware. There is global_config which access the [DEFAULT] and local_config for the middleware own…
Chmouel Boudjnah
  • 2,541
  • 3
  • 24
  • 28