Multi-tier Django app
Project description
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 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), 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
djaodjin-multitier-0.1.25.tar.gz
(18.5 kB
view hashes)
Close
Hashes for djaodjin-multitier-0.1.25.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fb5c752969ecf4495f8d115c69c5567521fdca89dfb0984e28f6829dfc0329b |
|
MD5 | 5379e29155437d170d1c5e1feaf5218c |
|
BLAKE2b-256 | 03cb1779a94c9d94813581bcc83328815e8f0158a0590b929f54c8c4f5b69248 |