#16983 closed Uncategorized (wontfix)
Incorporate Django Dynamic Sites App Functionality
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | contrib.sites | Version: | 1.3 |
Severity: | Normal | Keywords: | dynamic sites framework |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
Feature request to incorporate Django DynamicSites functionality (seen here: https://bitbucket.org/uysrc/django-dynamicsites/src) into upcoming release(s) of Django. This functionality is comparable to the Drupal multi-site feature and is an extension to the Django Sites framework. It allows for multiple, potentially hundreds, of sites with unique domains/subdomains to be hosted from a single Django installation without the need to add additional virtualhosts in Apache. It also allows each hosted domain/subdomain to have unique urls, settings, templates, sitemaps, admin sections public files and data. This is great for users that do things such as domain parking, multi-site blog/newspaper hosting and web developers hosting multiple sites for clients from a single Django codebase.
Change History (4)
comment:1 by , 13 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
comment:2 by , 13 years ago
I just located the last relevant discussion: http://groups.google.com/group/django-developers/browse_thread/thread/e23c3bf69efab94a/38e692a6f1cce93c?lnk=gst&q=dynamic+sites#38e692a6f1cce93c
comment:3 by , 13 years ago
FWIW, I've since released django-hosts (http://django-hosts.readthedocs.org/) which has integration with the sites app.
comment:4 by , 13 years ago
Thanks, I've looked at Django-hosts and, while similar, it's not the same functionality.
This feature request was discussed back in #4438. As noted in that ticket, if you want it in Django, you should send a realistic proposal to the django-developers mailing list, building upon past discussions of this topic, and addressing the points raised in those discussions (as much as possible)
django-dynamicsites uses thread-local settings, a pattern that was rejected in #12737, so it's unlikely to make it into Django as-is. If you search the archives of django-users and django-developers for "dynamic SITE_ID" and "thread locals", you will find several discussions on this topic.
Finally, as far as I can tell, django-dynamicsites hasn't really reached the notability threshold required for inclusion in Django yet, and there isn't a compelling reason to include it in core — it appears to live well as a third-party app.
So, I'm not against supporting multi-sites in Django, but "just merge django-dynamicsites" isn't a realistic plan, and I will close the ticket for that reason. However, you're very welcome to send a more detailed proposal for this feature on the mailing-list. Thanks!