from django.contrib.admin import AdminSite from django.utils.translation import gettext_lazy from django.contrib.auth import get_user_model from dbsettings.models import Setting class JokerAdmin(AdminSite): # Text to put at the end of each page's . site_title = gettext_lazy('JourneyJoker Administration') # Text to put in each page's <h1> (and above login form). site_header = gettext_lazy('JourneyJoker Administration') # Text to put at the top of the admin index page. index_title = gettext_lazy('JourneyJoker Administration') joker_admin = JokerAdmin() joker_admin.register(Setting)