Skip to content

Commit

Permalink
Fixes default admin url (#2474)
Browse files Browse the repository at this point in the history
Fixes default admin url (#2474)

---------

Co-authored-by: Aakash Singh <[email protected]>
  • Loading branch information
shivankacker and sainak authored Sep 22, 2024
1 parent 22a91f9 commit 0ee6d8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
# ------------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion config/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 0ee6d8a

Please sign in to comment.