Skip to content

Commit

Permalink
chore: Change certain url paths
Browse files Browse the repository at this point in the history
Changes the admin site for Django to point to a non default path
  • Loading branch information
edamboritz committed Jul 29, 2024
1 parent f3db8b5 commit 4a2d55c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ data:
ADMINS = (
('Sefaria Developers', '[email protected]'),
)
ADMIN_PATH = os.getenv("SEFARIA_ADMIN_PATH")
MANAGERS = ADMINS
Expand Down
4 changes: 2 additions & 2 deletions sefaria/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from django.http import HttpResponseRedirect
import django.contrib.auth.views as django_auth_views
from sefaria.forms import SefariaPasswordResetForm, SefariaSetPasswordForm, SefariaLoginForm
from sefaria.settings import DOWN_FOR_MAINTENANCE, STATIC_URL
from sefaria.settings import DOWN_FOR_MAINTENANCE, STATIC_URL, ADMIN_PATH

import reader.views as reader_views
import sefaria.views as sefaria_views
Expand Down Expand Up @@ -438,7 +438,7 @@
url(r'^admin/descriptions/authors/update', sefaria_views.update_authors_from_sheet),
url(r'^admin/descriptions/categories/update', sefaria_views.update_categories_from_sheet),
url(r'^admin/descriptions/texts/update', sefaria_views.update_texts_from_sheet),
url(r'^admin/?', include(admin.site.urls)),
url(fr'^{ADMIN_PATH}/?', include(admin.site.urls)),
]

# Stats API - return CSV
Expand Down

0 comments on commit 4a2d55c

Please sign in to comment.