Skip to main content

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.12, Django: 5.2 (LTS)
  • Python: 3.14, Django: 6.0 (next)
  • Python: 3.10, Django: 4.2 (legacy)
  • Python: 3.9, Django: 3.2 (legacy)

0.3.2

  • adds compatibillity with Django6.0

previous release notes

Project details


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.3.2.tar.gz (20.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

djaodjin_multitier-0.3.2-py3-none-any.whl (37.0 kB view details)

Uploaded Python 3

File details

Details for the file djaodjin_multitier-0.3.2.tar.gz.

File metadata

  • Download URL: djaodjin_multitier-0.3.2.tar.gz
  • Upload date:
  • Size: 20.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for djaodjin_multitier-0.3.2.tar.gz
Algorithm Hash digest
SHA256 4ac558c8e979a2ced5632c70e6a720ac6503dbd185b382bbed4f656e92bf3616
MD5 a47b879e5447174bc88a595964b34f54
BLAKE2b-256 556474fb249b277b4c1bbec6756a6c422c9b70fd133ca906ed2261f56bda586e

See more details on using hashes here.

File details

Details for the file djaodjin_multitier-0.3.2-py3-none-any.whl.

File metadata

File hashes

Hashes for djaodjin_multitier-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cdc30cbc9c33f8dff3dbcae79c3aa398b4d71847c1a0618f62c1365edb05b233
MD5 53af6db925244c0e72708a8141d8fffe
BLAKE2b-256 156d170150d2df856b2ead0c3169e6d80210ca2658259be09f305171757856ca

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page