Skip to main content

Lightweight django subdomains handler

Project description

Django Lightweight Subdomains Handler

This is a very short Django Middleware to handle each subdomains
with a specific URLconf file.


If you want to have something like::

with a specific URLconf file for each of your subdomains

This what you're looking for!

Quick start

1. Add this on top of your MIDDLEWARE_CLASSES setting like this::


2. Add the SUBDOMAINS_URLCONF dict to your setting project file::

'api': 'api.urls',

Where 'api.urls' is your Django-app 'api' and urls is your module

3. Run your Django project and try to reach

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-subdomains-handler, version 0.2
Filename, size File type Python version Upload date Hashes
Filename, size django-subdomains-handler-0.2.tar.gz (2.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page