﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
1192	[patch] Make urlresolver configureable	django@…	Adrian Holovaty	"Currently the urlresolver is fix in the http.base module, which doesn't allow to customize how url's get resolved.
This patch implements a new config variable URL_RESOLVER which points to a class that will be used for resolving the url, makeing it easy to customize the behaviour of the django installation. For example, you could easy implement a weblog hosting where USER.example.org ist the weblog of the user, without touching apache. Or even use a database driven resolver.
The class will be initialized a little bit different then the current RegexURLResolver, because the request object is very usefull for a resolver class.

This patch also implements a HostURLResolver which also matches the hostname through a regular expression. 
Note: The urlpatterns a different for this resolver:

{{{
urlpatterns = (
    (r'bla', patterns('',
          ...
    )),
    (r'^localhost$', patterns('',
         # Uncomment this for admin:
         (r'^admin/', include('django.contrib.admin.urls.admin')),
    )),
)
}}}

But it's for more advanced yours anyway, but I think it will be usefull for many people. The HostURLResolver is not that big, so i put it into core.urlresolvers."	enhancement	closed	Core (Other)	dev	normal	wontfix		django@…	Unreviewed	1	0	0	0	0	0
