Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

# django-multiple-domain
App for multi domain in django. Python2.x, Python3.x, Django>=1.4

Add request.host with subdomain value or None

Quick start
-----------

1. Add "multidomain" to your INSTALLED_APPS setting like this:
```
INSTALLED_APPS = (
...
'multidomain',
)
```
2. Include the 'multidomain.middleware.GetDomainMiddleware' MIDDLEWARE in your project settings.py like this:
```
MIDDLEWARE = [
...
'multidomain.middleware.GetDomainMiddleware',
]
```
3. Run `python manage.py migrate` to create the multidomain models.

In request object add two objects:
* request.domain - Domain model from request objects or None
* request.get_domain(request, reverse_url=None, *args, **kwargs) - Function by get domain.
* request - required argument
* reverse_lazy = optional. String format for reverse_lazy django function.
* args, kwargs - optional arguments, for reverse_lazy.

TODO:
1) Localization
2) Many-Level domain
3) Docs
4) ...

Metadata

Release files for django-multiple-domain 0.9.5a0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-multiple-domain 0.9.5a0
File Size Uploaded Provenance Actions
django-multiple-domain-0.9.5a0.tar.gz 3.7 kB Without provenance Details for django-multiple-domain-0.9.5a0.tar.gz

Release files / django-multiple-domain-0.9.5a0.tar.gz

Download URL django-multiple-domain-0.9.5a0.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
ea2aaa2804d9d5bb5b0d51a3f91b16b81bb97813bac9045f490d59233d732983
BLAKE2b-256 checksum
How to use checksums
ece955b032ca1b8ee18a587a930a51bfcaf74d1fad9063d5a41a29ba04b21b23
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-multiple-domain 0.9.5a0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page