Why doesn't Django support subdomain url conf?

1,082 views
Skip to first unread message

Alireza Savand

unread,
Jun 16, 2012, 8:48:16 AM6/16/12
to django...@googlegroups.com
Have extremely control on URLs with django is easy as possible.

But why there is nothing about handling subdomains url configration, all i found it was making a middleware and expose the request :|
And maybe all of them are all right, but why there is no support about subdomain url handling in django itself, is there a rule or something behind it or it is a minor thing ?
And by the way, what way do you prefer to working with subdomains ?

Daniel Roseman

unread,
Jun 16, 2012, 9:21:45 AM6/16/12
to django...@googlegroups.com
Because it's got nothing to do with Django. It's all in how you configure your webserver. Django does not control that.
--
DR. 

Alireza Savand

unread,
Jun 16, 2012, 10:03:08 AM6/16/12
to django...@googlegroups.com
 i don't think we can say that, cause instead of handling url in urls.conf, we could done that in .htaccess or as you said in WebServer configuration.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/7aTVSWIhGr4J.

To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Rafał Stożek

unread,
Jun 16, 2012, 10:04:36 AM6/16/12
to django...@googlegroups.com
You may want to take a look at this project: https://github.com/ennio/django-hosts

Timothy Makobu

unread,
Jun 16, 2012, 12:55:22 PM6/16/12
to django...@googlegroups.com
+1 

django-hosts worked very well for me.
 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/myaIhEQrlxsJ.

Alireza Savand

unread,
Jun 17, 2012, 6:03:38 AM6/17/12
to django...@googlegroups.com
Thank you Rafał, it's useful.
But it's will be reasonable if django own subdomains built-in.
Reply all
Reply to author
Forward
0 new messages