from django.conf import settings

from django_hosts import patterns, host

host_patterns = patterns("",
    host(r"www", settings.ROOT_URLCONF, name="default"),
    host(r"simple", "packages.simple.urls", name="simple"),
    host(r"pypi", "pypi.simple.urls", name="pypi"),
)

@@ -266,10 +266,89 @@
 pypi%22),%0A
+    host(r%22restricted%22, %22packages.simple.restricted_urls%22, name=%22restricted%22),%0A
 )%0A

add in the restricted hosts conf