Skip to content

Commit

Permalink
edit procfile to remove wsgi
Browse files Browse the repository at this point in the history
  • Loading branch information
sachalevy committed May 6, 2022
1 parent fe12f37 commit 1eb8c9a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions feedapp/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ def index(request):
print("following up and getting here", request.user, request.session.get("user"))
if request.user and not isinstance(request.user, AnonymousUser):
token, created = Token.objects.get_or_create(user=request.user)
# TODO: add prod url parameters
return redirect(
f"{settings.HULSE_DASHBOARD_URL}?"
+ urlencode(
Expand All @@ -69,7 +68,7 @@ def index(request):
def callback(request):
# if already registered the user and returning from alternative auth0 login
print("reached a callback\n\n")
if request.session.get("user"):
if request.session.get("user") and not isinstance(request.user, AnonymousUser):
print(request.user, request.session.get("user"))
return redirect(request.build_absolute_uri(reverse("index")))

Expand Down

0 comments on commit 1eb8c9a

Please sign in to comment.