Cleanup settings
@@ -9,7 +9,6 @@ from readthedocs.settings import base
class ProxitoDevSettings(base.CommunityBaseSettings):
- ALLOWED_HOSTS = ['*']
ROOT_URLCONF = 'readthedocs.proxito.urls'
USE_SUBDOMAIN = True
@@ -19,12 +18,14 @@ class ProxitoDevSettings(base.CommunityBaseSettings):
@property
def MIDDLEWARE(self): # noqa
+ # Use our new middleware instead of the old one
classes = super().MIDDLEWARE
classes = list(classes)
index = classes.index(
'readthedocs.core.middleware.SubdomainMiddleware'
)
classes[index] = 'readthedocs.proxito.middleware.ProxitoMiddleware'
+ classes.remove('readthedocs.core.middleware.SingleVersionMiddleware')
return classes
