Skip to content

Commit

Permalink
Turned debug to off by default. Fixed/reverted URL redirects for linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
lehnertz85 committed Feb 25, 2017
1 parent f51d3e8 commit 838bdc2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions dashboard/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def login_view(request):
if user is not None:
login(request, user, backend=None)
messages.success(request, 'Logged in!')
return redirect('')
return redirect('/dashboard/')
else:
messages.error(request, 'Username or password is incorrect')
else:
Expand All @@ -48,7 +48,7 @@ def login_view(request):
@login_required
def logout_view(request):
logout(request)
return redirect('')
return redirect('/login/')


@login_required
Expand All @@ -61,7 +61,7 @@ def profile_view(request, username=None):
if changeform.is_valid():
user = changeform.save()
update_session_auth_hash(request, user)
return redirect('')
return redirect('/dashboard/')

else:
changeform = PasswordChangeForm(username)
Expand Down
2 changes: 1 addition & 1 deletion my_dashboard/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
SECRET_KEY = 'ahjzk2_8%p@v3wfmsmlaej6(*8)jpvla4y6izgw5ax72(=ez4-'

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
DEBUG = False

ALLOWED_HOSTS = [
'0.0.0.0',
Expand Down

0 comments on commit 838bdc2

Please sign in to comment.