Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

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

Release History

This version
History Node


History Node


Download Files

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

File Name & Hash SHA256 Hash Help Version File Type Upload Date
(2.8 kB) Copy SHA256 Hash SHA256
Source Oct 17, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting