dj.paste-1.9
توضیحات
Yet another WSGI Paste factory for paste sponsored by Makina Corpus
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | dj.paste-1.9 |
| نام | dj.paste |
| نسخه کتابخانه | 1.9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Mathieu Pasquet |
| ایمیل نویسنده | kiorky@cryptelium.net |
| آدرس صفحه اصلی | https://github.com/kiorky/dj.paste |
| آدرس اینترنتی | https://pypi.org/project/dj.paste/ |
| مجوز | BSD |
Introduction
============
Yet another `paste`_ factories for django
.. _paste: http://pythonpaste.org/
.. contents::
Makina Corpus sponsored software
======================================
|makinacom|_
* `Planet Makina Corpus <http://www.makina-corpus.org>`_
* `Contact us <mailto:python@makina-corpus.org>`_
.. |makinacom| image:: http://depot.makina-corpus.org/public/logo.gif
.. _makinacom: http://www.makina-corpus.com
What is dj.paste
==================
It is just another `PythonPaste applications`_ wsgi wrappers:
.. _PythonPaste applications: http://pythonpaste.org/deploy/#paste-app-factory
* ``dj.paste#mono`` or only ``dj.paste``:
A paste factory to use when you have only one django on your instance
* ``dj.paste#multi``
A paste factory to use when you have more than one django on your instance
but be careful that there is a fakeDjangoModule trick that can lead to problems (not seen so far)
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
django factory
-----------------------------------------
Checking that everything is in place::
>>> resp = app.get('/')
>>> 'first django' in resp.body.lower()
True
Changelog
=========
1.14 (2012-02-22)
-----------------
- add weberror wrapper
1.10 (2012-02-22)
-----------------
* proper release
1.8
---------
* add a mono factory (and now the default)
* cleanup
1.3 - 1.4
----------
* fix multiple djangos in the same paste instance
1.2
-----
* fix script_path, see http://code.djangoproject.com/ticket/1516
1.0
----------------
* Initial release
نحوه نصب
نصب پکیج whl dj.paste-1.9:
pip install dj.paste-1.9.whl
نصب پکیج tar.gz dj.paste-1.9:
pip install dj.paste-1.9.tar.gz