| Server IP : 217.160.0.212 / Your IP : 216.73.216.141 Web Server : Apache System : Linux www 6.18.51-i1-ampere #1196 SMP Fri Sep 11 20:43:55 CEST 2026 aarch64 User : sws1073854427 ( 1073854427) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/python3/dist-packages/django_uwsgi/ |
Upload File : |
from debug_toolbar.panels import Panel
from django.utils.translation import ugettext_lazy as _
from . import uwsgi
class UwsgiPanel(Panel):
'''
uWSGI Debug Toolbar Panel
'''
title = _('uWSGI Status')
nav_title = _('uWSGI Status')
template = 'uwsgi/panel.html'
@property
def nav_subtitle(self):
if uwsgi is not None:
status = _('Version %s, %d Workers') % (
str(uwsgi.version.decode()), int(uwsgi.numproc))
else:
status = _('uWSGI is missing =(')
return status
def generate_stats(self, request, response):
if uwsgi is None:
self.record_stats({'unavailable': True})
else:
from .stats import get_uwsgi_stats
self.record_stats(get_uwsgi_stats())
process_response = generate_stats