djaodjin-multitier-0.1.9
توضیحات
Multi-tier Django app
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | djaodjin-multitier-0.1.9 |
| نام | djaodjin-multitier |
| نسخه کتابخانه | 0.1.9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | DjaoDjin inc. |
| ایمیل نویسنده | support@djaodjin.com |
| آدرس صفحه اصلی | https://github.com/djaodjin/djaodjin-multitier/ |
| آدرس اینترنتی | https://pypi.org/project/djaodjin-multitier/ |
| مجوز | BSD |
djaodjin-multitier is a Django application that implements shared tenancy.
Major Features:
- Dynamically select the following based on subdomain or path prefix:
* Database connection
* SMTP connection
* Templates
- URL resolvers: Dynamic path prefix (as a hack in i18n module)
The [notes](http://djaodjin.com/blog/multi-tier-implementation-in-django.blog.html)
of the presentation at a SF Django Meetup are useful to understand how
middlewares, thread locals and template loaders were used to implement
multi-tier applications here.
Tested with
- **Python:** 3.7, **Django:** 3.2 ([LTS](https://www.djangoproject.com/download/)), **Django Rest Framework:** 3.12
- **Python:** 3.10, **Django:** 4.0 (latest), **Django Rest Framework:** 3.12
- **Python:** 2.7, **Django:** 1.11 (legacy), **Django Rest Framework:** 3.9.4
Development
===========
After cloning the repository, create a virtualenv environment, install
the prerequisites, create and load initial data into the database, then
run the testsite webapp.
$ virtualenv _installTop_
$ source _installTop_/bin/activate
$ pip install -r testsite/requirements.txt
$ make initdb
$ python manage.py runserver
Release Notes
=============
0.1.25
* search path for theme assets should be fully defined in settings.py
[previous release notes](changelog)
نحوه نصب
نصب پکیج whl djaodjin-multitier-0.1.9:
pip install djaodjin-multitier-0.1.9.whl
نصب پکیج tar.gz djaodjin-multitier-0.1.9:
pip install djaodjin-multitier-0.1.9.tar.gz