We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1afe3ad commit daf0d1eCopy full SHA for daf0d1e
readthedocs/core/middleware.py
@@ -69,7 +69,7 @@ def process_request(self, request):
69
# Support ports during local dev
70
public_domain in host or public_domain in full_host
71
):
72
- if Project.objects.filter(slug=subdomain).exists():
+ if not Project.objects.filter(slug=subdomain).exists():
73
raise Http404(_('Project not found'))
74
request.subdomain = True
75
request.slug = subdomain
0 commit comments