/django-subdomains

Subdomain helpers for the Django framework, including subdomain-based URL routing.

Primary LanguagePythonMIT LicenseMIT

pip install subdomains

Thanks to @iheanyi, this would be backwards compatible till Django1.11 and continues to work on django2 and django3 (tested on django1.11.27, django2.2.9 and django3.0.2). Sample project

We will continue to support future Django LTS Releases

The previous subdomains can be downloaded by pip install subdomains==2.1.1

Edit Updated to work with django 1.10 and so on... using this https://docs.djangoproject.com/en/1.11/topics/http/middleware/#upgrading-middleware Edit2 Uploaded it to pypi: under "subdomains" pip install subdomains

I'd recommend for django versions<=1.9 use django-subdomains from op, otherwise for django 1.10, 1.11, django2, django3 etc use my subdomains version

subdomains

Subdomain helpers for the Django framework, including subdomain-based URL routing and reversing.

Full documentation can be found here: subdomains

Build Status

Build Status

Tested on Python 2.6, 2.7, 3.4, 3.5 and 3.6 on their supported Django versions from 1.4 through 1.11.

Check the following table for reference:

Django version Python versions
1.8 2.7, 3.2 (until the end of 2016), 3.3, 3.4, 3.5
1.9, 1.10 2.7, 3.4, 3.5
1.11 2.7, 3.4, 3.5, 3.6
2.0 3.4, 3.5, 3.6
2.1 3.5, 3.6, 3.7