dj-mongohq-url-0.0.3
توضیحات
Use MongoDB URLs in your Django Application.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | dj-mongohq-url-0.0.3 |
| نام | dj-mongohq-url |
| نسخه کتابخانه | 0.0.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Ferrix Hovi |
| ایمیل نویسنده | ferrix+github@ferrix.fi |
| آدرس صفحه اصلی | https://github.com/ferrix/dj-mongohq-url |
| آدرس اینترنتی | https://pypi.org/project/dj-mongohq-url/ |
| مجوز | BSD |
dj-mongohq-url
~~~~~~~~~~~~~~~
.. image:: https://secure.travis-ci.org/ferrix/dj-mongohq-url.png?branch=master
This simple Django utility allows you to utilize the
`12factor <http://www.12factor.net/backing-services>`_ inspired
``MONGOURL_URL`` environment variable to configure your Django application.
This is a slight adaptation of the dj-database-url by Kenneth Reitz
(http://github.com/kennethreitz/dj-database-url/). It is compatible with
django-nonrel_ and can be used to dig up the URL setting for other purposes
as well.
.. _django-nonrel: https://github.com/django-nonrel/mongodb-engine/
Usage
-----
Configure your database in ``settings.py`` from ``DATABASE_URL``::
DATABASES = {'default': dj_mongohq_url.config()}
Parse an arbitrary Database URL::
DATABASES = {'default': dj_mongohq_url.parse('mongodb://...')}
If you are not using Django with nonrel capabilities and merely want to
dig up the MongoDB settings, use another variable::
MONGODB = dj_mongohq_url.config()
Supported databases
-------------------
Support currently exists for MongoDB.
نیازمندی
| مقدار | نام |
|---|---|
| - | six |
نحوه نصب
نصب پکیج whl dj-mongohq-url-0.0.3:
pip install dj-mongohq-url-0.0.3.whl
نصب پکیج tar.gz dj-mongohq-url-0.0.3:
pip install dj-mongohq-url-0.0.3.tar.gz