Exemplo n.º 1
0
 def get_initial(self):
     """Return the current status"""
     return {
         'hostname': config.get_hostname(),
         'domainname': config.get_domainname(),
         'homepage': config.get_home_page(),
         'advanced_mode': config.get_advanced_mode(),
     }
Exemplo n.º 2
0
def system_index(request):
    """Serve the system index page."""
    return TemplateResponse(request, 'system.html',
                            {'advanced_mode': get_advanced_mode()})
Exemplo n.º 3
0
 def get_context_data(self, *args, **kwargs):
     context = super().get_context_data(*args, **kwargs)
     context['show_disabled'] = True
     context['advanced_mode'] = get_advanced_mode()
     return context