Skip to content
This repository was archived by the owner on Jul 16, 2026. It is now read-only.

Commit ab38d51

Browse files
committed
config: redirect to /admin/ after login (default was /accounts/profile/)
Django's default LOGIN_REDIRECT_URL is /accounts/profile/, which VMC doesn't route — a successful admin login landed on a 404. Point both LOGIN_REDIRECT_URL and LOGOUT_REDIRECT_URL at the admin.
1 parent 295114b commit ab38d51

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/vmc/config/settings.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ def get_config(key, default):
7373
[F"{SCHEMA}://{DOMAIN}{PORT}", "http://localhost:8080", "http://localhost"],
7474
)
7575

76+
LOGIN_REDIRECT_URL = '/admin/'
77+
LOGOUT_REDIRECT_URL = '/admin/login/'
78+
7679

7780
INTERNAL_APPS = [
7881
'vmc.common',

0 commit comments

Comments
 (0)