Skip to content

Commit

Permalink
Change header and title on admin site
Browse files Browse the repository at this point in the history
  • Loading branch information
Svetlitski committed Feb 19, 2020
1 parent 425b510 commit d78896f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion csm_web/csm_web/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,9 @@

class AdminSite(DefaultAdminSite):
if settings.DJANGO_ENV != settings.DEVELOPMENT:
login_template = 'admin_login.html'
# Use custom template which just redirects to standard login page,
# thereby disabling Django's built-in admin login page
login_template = 'admin/admin_login.html'
site_header = "Scheduler Admin"
site_title = "CSM Scheduler Admin"
index_title = ""
2 changes: 1 addition & 1 deletion csm_web/csm_web/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
TEMPLATES = [
{
"BACKEND": "django.template.backends.django.DjangoTemplates",
"DIRS": ["./csm_web/csm_web/templates/csm_web/"],
"DIRS": ["./csm_web/csm_web/templates/"],
"APP_DIRS": True,
"OPTIONS": {
"context_processors": [
Expand Down

0 comments on commit d78896f

Please sign in to comment.