mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Handling dev subdomain gracefully.
This commit is contained in:
parent
a8185d06b8
commit
9e3771c481
1 changed files with 2 additions and 2 deletions
|
@ -54,10 +54,10 @@ SINGLE_DAY = 60*60*24
|
|||
@never_cache
|
||||
@render_to('reader/feeds.xhtml')
|
||||
def index(request):
|
||||
if request.method == "GET" and request.subdomain:
|
||||
if request.method == "GET" and request.subdomain and request.subdomain != 'dev':
|
||||
username = request.subdomain
|
||||
try:
|
||||
if '.' in username and username != 'dev':
|
||||
if '.' in username:
|
||||
username = username.split('.')[0]
|
||||
user = User.objects.get(username=username)
|
||||
except User.DoesNotExist:
|
||||
|
|
Loading…
Add table
Reference in a new issue