diff --git a/config/settings/base.py b/config/settings/base.py index 7c934f830b..21627b8ab7 100644 --- a/config/settings/base.py +++ b/config/settings/base.py @@ -309,7 +309,7 @@ # MANAGERS = ADMINS # Django Admin URL. -ADMIN_URL = env("DJANGO_ADMIN_URL", default="admin/") +ADMIN_URL = env("DJANGO_ADMIN_URL", default="admin") # LOGGING # ------------------------------------------------------------------------------ diff --git a/config/urls.py b/config/urls.py index 923c8413ce..832f8168a4 100644 --- a/config/urls.py +++ b/config/urls.py @@ -40,7 +40,7 @@ path("ping/", ping, name="ping"), path("app_version/", app_version, name="app_version"), # Django Admin, use {% url 'admin:index' %} - path(f"{settings.ADMIN_URL}/", admin.site.urls), + path(f"{settings.ADMIN_URL.rstrip("/")}/", admin.site.urls), # Rest API path("api/v1/auth/login/", TokenObtainPairView.as_view(), name="token_obtain_pair"), path(