Skip to content

Commit

Permalink
Merge pull request #23 from benjaoming/fix-login-url
Browse files Browse the repository at this point in the history
Use reverse_lazy
  • Loading branch information
benjaoming authored Jul 10, 2021
2 parents b17fb5e + 896a49c commit 1c2a590
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions djangodenmark/settings/base.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import os
import pathlib

from django.urls.base import reverse_lazy

# Build paths inside the project like this: str(BASE_DIR / "static")
BASE_DIR = pathlib.Path(__file__).resolve().parent.parent

Expand Down Expand Up @@ -112,8 +114,8 @@

DJANGO_DENMARK_INVITE_CODES = []

LOGIN_REDIRECT_URL = "event:index"
LOGIN_REDIRECT_URL = reverse_lazy("events:index")

LOGOUT_REDIRECT_URL = "event:index"
LOGOUT_REDIRECT_URL = reverse_lazy("events:index")

SIGNUP_REDIRECT_URL = "/"

0 comments on commit 1c2a590

Please sign in to comment.