Django application that implements shared tenancy
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.
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.
$ python -m venv .venv
$ source .venv/bin/activate
$ pip install -r testsite/requirements.txt
# Create the fixtures databases and run the server
$ make initdb
$ python manage.py runserver
Release Notes
Tested with
- Python: 3.10, Django: 4.2 (LTS)
- Python: 3.12, Django: 5.1 (next)
- Python: 3.7, Django: 3.2 (legacy)
0.3.1
- loads site even when some encrypted database fields cannot be decrypted
- adds fields for workflow configuration settings
- swaps order of
locationandrequestparameters inbuild_absolute_uri
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file djaodjin_multitier-0.3.1.tar.gz.
File metadata
- Download URL: djaodjin_multitier-0.3.1.tar.gz
- Upload date:
- Size: 20.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
15c2e57af25ee025b4ef749b5db17c0825b9df215e4a42c0cf8d519e73de91c3
|
|
| MD5 |
f8eeaf4d91cd53f37d4f6a3363bc966a
|
|
| BLAKE2b-256 |
d2588ef56410609d4ed95b3d5a10b85ad83b95358daeda3542876444f00e0ee4
|
File details
Details for the file djaodjin_multitier-0.3.1-py3-none-any.whl.
File metadata
- Download URL: djaodjin_multitier-0.3.1-py3-none-any.whl
- Upload date:
- Size: 37.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b49e83fac2a0cc35134ef8bcc435ef8818800b8797a7427b194ab04bc957c6b
|
|
| MD5 |
cbf5853fc76f66f0297ddeacca1e83d2
|
|
| BLAKE2b-256 |
a6d8a6bfc15d9e4895f9be7a411611d10e4079e589e562ee535f261192ced808
|