|
Server : Apache System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64 User : njnconst ( 1116) PHP Version : 8.4.18 Disable Function : NONE Directory : /usr/lib64/python2.7/site-packages/django/core/servers/ |
Upload File : |
�
r�\c @ sF d Z d d l m Z d d l m Z d d l Z d d l Z d d l Z d d l m Z d d l
m Z d d l m
Z
d d l m Z d d l m Z d d
l m Z d d l m Z d d l m Z d Z d Z d � Z d e j e f d � � YZ d e j e f d � � YZ d e j e f d � � YZ e e d � Z d S( u0
HTTP server that implements the Python WSGI protocol (PEP 333, rev 1.21).
Based on wsgiref.simple_server which is part of the standard library since 2.5.
This is a simple server for use in testing or debugging Django apps. It hasn't
been reviewed for security issues. DON'T USE IT FOR PRODUCTION USE!
i����( t unicode_literals( t BytesION( t
simple_server( t FileWrapper( t color_style( t get_wsgi_application( t import_by_path( t six( t urljoin( t socketserveru
WSGIServeru WSGIRequestHandleru MAX_SOCKET_CHUNK_SIZEi i c C sF d d l m } t | d � } | d k r2 t � St | d d | �S( ud
Loads and returns the WSGI application as configured by the user in
``settings.WSGI_APPLICATION``. With the default ``startproject`` layout,
this will be the ``application`` object in ``projectname/wsgi.py``.
This function, and the ``WSGI_APPLICATION`` setting itself, are only useful
for Django's internal servers (runserver, runfcgi); external WSGI servers
should just be configured to point to the correct application object
directly.
If settings.WSGI_APPLICATION is not set (is ``None``), we just return
whatever ``django.core.wsgi.get_wsgi_application`` returns.
i����( t settingsu WSGI_APPLICATIONt error_prefixu+ WSGI application '%s' could not be loaded; N( t django.confR
t getattrt NoneR R ( R
t app_path( ( s>