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.7, Django: 3.2 (LTS)
- Python: 3.10, Django: 4.2 (latest)
- Python: 2.7, Django: 1.11 (legacy) - use testsite/requirements-legacy.txt
0.1.26
- returns URL as-is if location is an absolute URL already
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.26.tar.gz
(19.1 kB
view hashes)
Built Distribution
Close
Hashes for djaodjin-multitier-0.1.26.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 738cf4e865bc07decb616143c8cf4b13102b6e848b1f87d1906d097ac11db4bd |
|
MD5 | f4de9a8d8623fee1dbdc679c5d145d2c |
|
BLAKE2b-256 | 6cbc457ed5a6b1ef799e18606a5372048d8b576ebf9995a27fbdce612af322f8 |
Close
Hashes for djaodjin_multitier-0.1.26-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44c6f45a4a10a80a3d15d3f53f7566ecfeacd3b27707dafa06fb61ad78bc668c |
|
MD5 | b9010750df5301f164626651048374d9 |
|
BLAKE2b-256 | 03e95289bc2289e46c0be7e968e6f79ef68b29682a92cb4e3d6d8f1344fcee56 |