aboutsummaryrefslogtreecommitdiff
path: root/middleware
diff options
context:
space:
mode:
authorBobby <[email protected]>2022-10-10 12:33:14 -0400
committerBobby <[email protected]>2022-10-10 12:33:14 -0400
commitb2da687b0a39930c64e40223fbbece0d399047fa (patch)
tree945c8a6df8bf14d19c6badb087384d8ab43f1980 /middleware
parent5749e2db42f2908ef7c62c8ab979def0251673d7 (diff)
downloadthatcomputerscientist-b2da687b0a39930c64e40223fbbece0d399047fa.tar.xz
thatcomputerscientist-b2da687b0a39930c64e40223fbbece0d399047fa.zip
Revert "Moving login and logout functions to subdomains"
This reverts commit 69cba5af4a819ef732e3bbb7918bacf3c020808f.
Diffstat (limited to 'middleware')
-rw-r--r--middleware/subdomainmiddleware.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/middleware/subdomainmiddleware.py b/middleware/subdomainmiddleware.py
index b2f39711..479c74d6 100644
--- a/middleware/subdomainmiddleware.py
+++ b/middleware/subdomainmiddleware.py
@@ -24,9 +24,6 @@ class SubdomainURLRouting:
configured_subdomains = getattr(settings, 'CONFIGURED_SUBDOMAINS', {})
if request.subdomain:
if request.subdomain in configured_subdomains:
- if request.META.get('HTTP_REFERER') is None:
- request.META['HTTP_REFERER'] = 'https://{}{}'.format(request.subdomain, settings.HOSTS[0])
-
request.urlconf = configured_subdomains[request.subdomain] + '.urls'
else:
if '*' in configured_subdomains: