o
    uvXj<p  ã                   @   sÜ  d dl Z d dl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mZmZ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mZmZ d dlm Z  d dl!m"Z"m#Z#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/m0Z0 d dl1m2Z2 d dl3m4Z4 dZ5dZ6de6 Z7e 8d¡Z9e 8d¡Z:G dd„ de;ƒZ<G dd„ dƒZ=d d!„ Z>d"d#„ Z?G d$d%„ d%eƒZ@d&d'„ ZAd(d)„ ZBd*d+„ ZCG d,d-„ d-ƒZDG d.d/„ d/eDƒZEdS )0é    N)Úcopy)Úpartial)Ú
HTTPStatus)Úimport_module)ÚBytesIO)Úunquote_to_bytesÚurljoinÚurlparseÚurlsplit)Úsettings)ÚBaseHandler)ÚWSGIRequest)ÚDjangoJSONEncoder)Úgot_request_exceptionÚrequest_finishedÚrequest_started)Úclose_old_connections)ÚHttpRequestÚ	QueryDictÚSimpleCookie)ÚTemplateDoesNotExist)Úsignals)ÚContextList©Úresolve)Úforce_bytes)ÚSimpleLazyObject)Ú	urlencode)Úis_iterable)ÚClientÚRedirectCycleErrorÚRequestFactoryÚencode_fileÚencode_multipartÚBoUnDaRyStRiNgz multipart/form-data; boundary=%sz.*; charset=([\w\d-]+);?z^application\/(.+\+)?jsonc                       s    e Zd ZdZ‡ fdd„Z‡  ZS )r    z9The test client has been asked to follow a redirect loop.c                    s   t ƒ  |¡ || _|j| _d S ©N)ÚsuperÚ__init__Úlast_responseÚredirect_chain)ÚselfÚmessager(   ©Ú	__class__© úO/var/www/html/myproject/venv/lib/python3.10/site-packages/django/test/client.pyr'   +   s   zRedirectCycleError.__init__)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r'   Ú__classcell__r.   r.   r,   r/   r    )   s    r    c                   @   s4   e Zd ZdZddd„Zdd„ Zddd„Zd	d
„ ZdS )ÚFakePayloada  
    A wrapper around BytesIO that restricts what can be read since data from
    the network can't be seeked and cannot be read outside of its content
    length. This makes sure that views can't do anything under the test client
    that wouldn't work in real life.
    Nc                 C   s.   t ƒ | _d| _d| _|d ur|  |¡ d S d S )Nr   F)r   Ú_FakePayload__contentÚ_FakePayload__lenÚread_startedÚwrite©r*   Úcontentr.   r.   r/   r'   8   s   ÿzFakePayload.__init__c                 C   s   | j S r%   )r7   )r*   r.   r.   r/   Ú__len__?   s   zFakePayload.__len__c                 C   sZ   | j s| j d¡ d| _ |d u r| jpd}| j|ksJ dƒ‚| j |¡}|  j|8  _|S )Nr   TzFCannot read more than the available bytes from the HTTP incoming data.)r8   r6   Úseekr7   Úread)r*   Ú	num_bytesr;   r.   r.   r/   r>   B   s   
zFakePayload.readc                 C   s8   | j rtdƒ‚t|ƒ}| j |¡ |  jt|ƒ7  _d S )Nz.Unable to write a payload after he's been read)r8   Ú
ValueErrorr   r6   r9   r7   Úlenr:   r.   r.   r/   r9   M   s
   zFakePayload.writer%   )r0   r1   r2   r3   r'   r<   r>   r9   r.   r.   r.   r/   r5   1   s    

r5   c              	   c   sJ   � z| E d H  W t  t¡ |ƒ  t  t¡ d S t  t¡ |ƒ  t  t¡ w r%   )r   Ú
disconnectr   Úconnect)ÚiterableÚcloser.   r.   r/   Úclosing_iterator_wrapperU   s   €

þrF   c                 C   sZ   d|j   krdk sn |j dv r|jrg |_nd|_| jdkr+|jr(g |_|S d|_|S )zÀ
    Simulate the behavior of most Web servers by removing the content of
    responses for HEAD requests, 1xx, 204, and 304 responses. Ensure
    compliance with RFC 7230, section 3.3.3.
    éd   éÈ   )éÌ   i0  ó    ÚHEAD)Ústatus_codeÚ	streamingÚstreaming_contentr;   Úmethod)ÚrequestÚresponser.   r.   r/   Úconditional_content_removal^   s   "
ÿrR   c                       s*   e Zd ZdZd‡ fdd„	Zdd„ Z‡  ZS )ÚClientHandlerzç
    A HTTP Handler that can be used for testing purposes. Use the WSGI
    interface to compose requests, but return the raw HttpResponse object with
    the originating WSGIRequest attached to its ``wsgi_request`` attribute.
    Tc                    s   || _ tƒ j|i |¤Ž d S r%   )Úenforce_csrf_checksr&   r'   )r*   rT   ÚargsÚkwargsr,   r.   r/   r'   w   s   zClientHandler.__init__c                 C   sœ   | j d u r	|  ¡  t t¡ tj| j|d� t t¡ t|ƒ}| j	 |_
|  |¡}t||ƒ ||_|jr>t|j|jƒ|_|S t t¡ | ¡  t t¡ |S )N)ÚsenderÚenviron)Ú_middleware_chainÚload_middlewarer   rB   r   Úsendr-   rC   r   rT   Ú_dont_enforce_csrf_checksÚget_responserR   Úwsgi_requestrM   rF   rN   rE   r   )r*   rX   rP   rQ   r.   r.   r/   Ú__call__{   s&   





ÿ
ü
zClientHandler.__call__)T)r0   r1   r2   r3   r'   r_   r4   r.   r.   r,   r/   rS   q   s    rS   c                 K   s:   |   dg ¡ |¡ d| vrtƒ | d< | d  t|ƒ¡ dS )z›
    Store templates and contexts that are rendered.

    The context is copied so that it is an accurate representation at the time
    of rendering.
    Ú	templatesÚcontextN)Ú
setdefaultÚappendr   r   )ÚstoreÚsignalrW   Útemplatera   rV   r.   r.   r/   Ústore_rendered_templates¡   s   
rg   c              	      sü   g }dd„ ‰ dd„ }|  ¡ D ]_\}}|du rtdƒ‚||ƒr(| t| ||ƒ¡ qt|tƒsYt|ƒrY|D ]$}||ƒrC| t| ||ƒ¡ q3| ‡ fdd„d	|  d
| d|fD ƒ¡ q3q| ‡ fdd„d	|  d
| d|fD ƒ¡ q| ˆ d|  ƒdg¡ d |¡S )a+  
    Encode multipart POST data from a dictionary of form values.

    The key will be used as the form data name; the value will be transmitted
    as content. If the value is a file, the contents of the file will be sent
    as an application/octet-stream; otherwise, str(value) will be sent.
    c                 S   ó   t | tjƒS r%   ©r   r   ÚDEFAULT_CHARSET©Úsr.   r.   r/   Úto_bytes¸   ó   z"encode_multipart.<locals>.to_bytesc                 S   s   t | dƒo	t| jƒS )Nr>   )ÚhasattrÚcallabler>   )Úthingr.   r.   r/   Úis_file¼   s   z!encode_multipart.<locals>.is_fileNzXCannot encode None as POST data. Did you mean to pass an empty string or omit the value?c                 3   ó   � | ]}ˆ |ƒV  qd S r%   r.   ©Ú.0Úval©rm   r.   r/   Ú	<genexpr>Ï   ó   € z#encode_multipart.<locals>.<genexpr>ú--%sz)Content-Disposition: form-data; name="%s"Ú c                 3   rs   r%   r.   rt   rw   r.   r/   rx   Ö   ry   z--%s--rJ   s   
)ÚitemsÚ	TypeErrorÚextendr"   Ú
isinstanceÚstrr   Újoin)ÚboundaryÚdataÚlinesrr   ÚkeyÚvalueÚitemr.   rw   r/   r#   ®   s@   ÿüüü
þ
r#   c                 C   s¤   dd„ }t |dƒot|jtƒ}|rtj |j¡nd}t |dƒr#|j}n|r-t 	|¡d }nd }|d u r5d}|p8|}|d|  ƒ|d	||f ƒ|d
| ƒd|| 
¡ ƒgS )Nc                 S   rh   r%   ri   rk   r.   r.   r/   rm   å   rn   zencode_file.<locals>.to_bytesÚnamer{   Úcontent_typer   úapplication/octet-streamrz   z8Content-Disposition: form-data; name="%s"; filename="%s"zContent-Type: %srJ   )ro   r   rˆ   r€   ÚosÚpathÚbasenamer‰   Ú	mimetypesÚ
guess_typer>   )r‚   r…   Úfilerm   Úfile_has_string_nameÚfilenamer‰   r.   r.   r/   r"   ä   s&   

ÿ

úr"   c                   @   sº   e Zd ZdZedœdd„Zdd„ Zdd„ Zd	d
„ Zdd„ Z	dd„ Z
d%dd„Zdedfdd„Zd%dd„Zd&dd„Z		d'dd„Z		d'dd„Z		d'dd „Z		d'd!d"„Z		d'd#d$„ZdS )(r!   aV  
    Class that lets you create mock Request objects for use in testing.

    Usage:

    rf = RequestFactory()
    get_request = rf.get('/hello/')
    post_request = rf.post('/submit/', {'foo': 'bar'})

    Once you have a request object you can pass it to any view function,
    just as if that view had been hooked up using a URLconf.
    )Újson_encoderc                K   s    || _ || _tƒ | _tƒ | _d S r%   )r“   Údefaultsr   Úcookiesr   Úerrors)r*   r“   r”   r.   r.   r/   r'     s   zRequestFactory.__init__c                 K   sN   d  tdd„ | j ¡ D ƒƒ¡dddddd	d
ddtdƒ| jddddœ| j¥|¥S )z5
        The base environment for a request.
        z; c                 s   s    � | ]}d |j |jf V  qdS )z%s=%sN)r…   Úcoded_value)ru   Úmorselr.   r.   r/   rx     s
   € ÿ
ÿz/RequestFactory._base_environ.<locals>.<genexpr>ú/z	127.0.0.1ÚGETr{   Ú
testserverÚ80zHTTP/1.1)é   r   ÚhttprJ   TF)ÚHTTP_COOKIEÚ	PATH_INFOÚREMOTE_ADDRÚREQUEST_METHODÚSCRIPT_NAMEÚSERVER_NAMEÚSERVER_PORTÚSERVER_PROTOCOLzwsgi.versionúwsgi.url_schemeú
wsgi.inputzwsgi.errorszwsgi.multiprocesszwsgi.multithreadzwsgi.run_once)r�   Úsortedr•   Úvaluesr5   r–   r”   ©r*   rP   r.   r.   r/   Ú_base_environ  s,   	þîíìzRequestFactory._base_environc                 K   s   t | jdi |¤ŽƒS )z#Construct a generic request object.Nr.   )r   r¬   r«   r.   r.   r/   rP   3  s   zRequestFactory.requestc                 C   s>   |t u r	tt|ƒS t |¡}|r| d¡}ntj}t||d�S )Nr�   )Úencoding)	ÚMULTIPART_CONTENTr#   ÚBOUNDARYÚCONTENT_TYPE_REÚmatchÚgroupr   rj   r   )r*   rƒ   r‰   r±   Úcharsetr.   r.   r/   Ú_encode_data7  s   

zRequestFactory._encode_datac                 C   s2   t  |¡ot|tttfƒ}|rtj|| jd�S |S )zu
        Return encoded JSON if data is a dict, list, or tuple and content_type
        is application/json.
        )Úcls)	ÚJSON_CONTENT_TYPE_REr±   r   ÚdictÚlistÚtupleÚjsonÚdumpsr“   )r*   rƒ   r‰   Úshould_encoder.   r.   r/   Ú_encode_jsonC  s   zRequestFactory._encode_jsonc                 C   s,   |j }|jr|d|j 7 }t|ƒ}| d¡S )Nú;ú
iso-8859-1)rŒ   Úparamsr   Údecode)r*   ÚparsedrŒ   r.   r.   r/   Ú	_get_pathK  s
   
zRequestFactory._get_pathNFc                 K   ó8   |du ri n|}| j d|fd|idt|dd�i|¥¤ŽS )zConstruct a GET request.Nrš   ÚsecureÚQUERY_STRINGT©Údoseq©Úgenericr   ©r*   rŒ   rƒ   rÅ   Úextrar.   r.   r/   ÚgetV  ó   ÿþzRequestFactory.getc                 K   s@   |   |du ri n||¡}|  ||¡}| jd|||fd|i|¤ŽS )zConstruct a POST request.NÚPOSTrÅ   )r½   r´   rÊ   )r*   rŒ   rƒ   r‰   rÅ   rÌ   Ú	post_datar.   r.   r/   Úpost^  s   ÿÿzRequestFactory.postc                 K   rÄ   )zConstruct a HEAD request.NrK   rÅ   rÆ   TrÇ   rÉ   rË   r.   r.   r/   Úheadg  rÎ   zRequestFactory.headc                 K   s   | j d|fd|i|¤ŽS )zConstruct a TRACE request.ÚTRACErÅ   ©rÊ   )r*   rŒ   rÅ   rÌ   r.   r.   r/   Útraceo  s   zRequestFactory.tracer{   rŠ   c                 K   s   | j d|||fd|i|¤ŽS )zConstruct an OPTIONS request.ÚOPTIONSrÅ   rÔ   ©r*   rŒ   rƒ   r‰   rÅ   rÌ   r.   r.   r/   Úoptionss  s
   ÿÿzRequestFactory.optionsc                 K   ó(   |   ||¡}| jd|||fd|i|¤ŽS )zConstruct a PUT request.ÚPUTrÅ   ©r½   rÊ   r×   r.   r.   r/   Úputy  ó   ÿÿzRequestFactory.putc                 K   rÙ   )zConstruct a PATCH request.ÚPATCHrÅ   rÛ   r×   r.   r.   r/   Úpatch€  rÝ   zRequestFactory.patchc                 K   rÙ   )zConstruct a DELETE request.ÚDELETErÅ   rÛ   r×   r.   r.   r/   Údelete‡  rÝ   zRequestFactory.deletec           
      K   sœ   t t|ƒƒ}t|tjƒ}|  |¡||rdnd|rdnddœ}|r/| tt|ƒƒ|t|ƒdœ¡ | |¡ | 	d¡sF|d  
¡  d	¡}	|	|d< | jdi |¤ŽS )z$Construct an arbitrary HTTP request.Ú443rœ   Úhttpsrž   )r    r¢   r¥   r§   )ÚCONTENT_LENGTHÚCONTENT_TYPEr¨   rÆ   é   r¿   Nr.   )r	   r€   r   r   rj   rÃ   ÚupdaterA   r5   rÍ   ÚencoderÁ   rP   )
r*   rO   rŒ   rƒ   r‰   rÅ   rÌ   rÂ   ÚrÚquery_stringr.   r.   r/   rÊ   Ž  s$   

ü
ý

zRequestFactory.generic)NF©F)r{   rŠ   F)r0   r1   r2   r3   r   r'   r¬   rP   r´   r½   rÃ   rÍ   r®   rÑ   rÒ   rÕ   rØ   rÜ   rß   rá   rÊ   r.   r.   r.   r/   r!     s:    

ÿ
	

ÿ
ÿ
ÿ
ÿÿr!   c                       sü   e Zd ZdZd*‡ fdd„	Zdd„ Zedd„ ƒZd	d
„ Zd+‡ fdd„	Z	de
ddf‡ fdd„	Zd+‡ fdd„	Z		d,‡ fdd„	Z		d,‡ fdd„	Z		d,‡ fdd„	Z		d,‡ fdd„	Zd-‡ fdd„	Zdd„ Zd.d d!„Zd.d"d#„Zd$d%„ Zd&d'„ Zd/d(d)„Z‡  ZS )0r   a¾  
    A class that can act as a client for testing purposes.

    It allows the user to compose GET and POST requests, and
    obtain the response that the server gave to those requests.
    The server Response objects are annotated with the details
    of the contexts and templates that were rendered during the
    process of serving the request.

    Client objects are stateful - they will retain cookie (and
    thus session) details for the lifetime of the Client instance.

    This is not intended as a replacement for Twill/Selenium or
    the like - it is here to allow testing against the
    contexts and templates produced by a view, rather than the
    HTML rendered to the end-user.
    Fc                    s&   t ƒ jdi |¤Ž t|ƒ| _d | _d S )Nr.   )r&   r'   rS   ÚhandlerÚexc_info)r*   rT   r”   r,   r.   r/   r'   »  s   

zClient.__init__c                 K   s   t  ¡ | _dS )z3Store exceptions when they are generated by a view.N)Úsysrí   )r*   rV   r.   r.   r/   Ústore_exc_infoÀ  s   zClient.store_exc_infoc                 C   sJ   t tjƒ}| j tj¡}|r| |j¡S | ¡ }| ¡  |j	| jtj< |S )z%Return the current session variables.)
r   r   ÚSESSION_ENGINEr•   rÍ   ÚSESSION_COOKIE_NAMEÚSessionStorer†   ÚsaveÚsession_key)r*   ÚengineÚcookieÚsessionr.   r.   r/   r÷   Ä  s   
zClient.sessionc              
      sj  | j di ˆ ¤Ž}i }tt|ƒ}dtˆ ƒ }tjj||d� dtˆ ƒ }tj| j|d� z{z|  	|¡}W n t
yK } z|jdkrA‚ W Y d}~nd}~ww | jrZ| j\}	}
}	d| _|
‚| |_ˆ |_| dg ¡|_| d¡|_t| j|ƒ|_t‡ fdd	„ƒ|_|jr�t|jƒd
kr�|jd |_|jr—| j |j¡ |W tjj|d� tj|d� S tjj|d� tj|d� w )a	  
        The master request method. Compose the environment dictionary and pass
        to the handler, return the result of the handler. Assume defaults for
        the query environment, which can be overridden using the arguments to
        the request.
        ztemplate-render-%s)Údispatch_uidzrequest-exception-%s)z500.htmlNr`   ra   c                      s   t ˆ d ƒS )Nr    r   r.   ©rP   r.   r/   Ú<lambda>  s    z Client.request.<locals>.<lambda>r�   r   r.   )r¬   r   rg   Úidr   Útemplate_renderedrC   r   rï   rì   r   rU   rí   ÚclientrP   rÍ   r`   ra   Ú_parse_jsonrº   r   Úresolver_matchrA   r•   rç   rB   )r*   rP   rX   rƒ   Úon_template_renderÚ
signal_uidÚexception_uidrQ   ÚeÚ_Ú	exc_valuer.   rù   r/   rP   Ñ  sF   

ÿ€ùÿzClient.requestNc                    ó8   t ƒ j|f||dœ|¤Ž}|r| j|fd|i|¤Ž}|S )z-Request a response from the server using GET.©rƒ   rÅ   rƒ   )r&   rÍ   Ú_handle_redirects©r*   rŒ   rƒ   ÚfollowrÅ   rÌ   rQ   r,   r.   r/   rÍ     ó   z
Client.getc                    ó<   t ƒ j|f|||dœ|¤Ž}|r| j|f||dœ|¤Ž}|S )z.Request a response from the server using POST.©rƒ   r‰   rÅ   ©rƒ   r‰   )r&   rÑ   r  ©r*   rŒ   rƒ   r‰   r
  rÅ   rÌ   rQ   r,   r.   r/   rÑ     ó   zClient.postc                    r  )z.Request a response from the server using HEAD.r  rƒ   )r&   rÒ   r  r	  r,   r.   r/   rÒ   $  r  zClient.headr{   rŠ   c                    r  )z1Request a response from the server using OPTIONS.r  r  )r&   rØ   r  r  r,   r.   r/   rØ   +  r  zClient.optionsc                    r  )z(Send a resource to the server using PUT.r  r  )r&   rÜ   r  r  r,   r.   r/   rÜ   3  r  z
Client.putc                    r  )z*Send a resource to the server using PATCH.r  r  )r&   rß   r  r  r,   r.   r/   rß   ;  r  zClient.patchc                    r  )z$Send a DELETE request to the server.r  r  )r&   rá   r  r  r,   r.   r/   rá   C  r  zClient.deletec                    r  )z#Send a TRACE request to the server.r  rƒ   )r&   rÕ   r  r	  r,   r.   r/   rÕ   K  r  zClient.tracec                 K   s0   ddl m} |di |¤Ž}|r|  |¡ dS dS )z½
        Set the Factory to appear as if it has successfully logged into a site.

        Return True if login is possible; False if the provided credentials
        are incorrect.
        r   )ÚauthenticateTFNr.   )Údjango.contrib.authr  Ú_login)r*   Úcredentialsr  Úuserr.   r.   r/   ÚloginR  s   
zClient.loginc                 C   s,   dd„ }|d u r|ƒ }||_ |  ||¡ d S )Nc                  S   s6   ddl m}  tjD ]}| |ƒ}t|dƒr|  S q	d S )Nr   )Úload_backendÚget_user)r  r  r   ÚAUTHENTICATION_BACKENDSro   )r  Úbackend_pathÚbackendr.   r.   r/   Úget_backendb  s   

ÿþz'Client.force_login.<locals>.get_backend)r  r  )r*   r  r  r  r.   r.   r/   Úforce_logina  s
   zClient.force_loginc                 C   sŒ   ddl m} ttjƒ}tƒ }| jr| j|_n| ¡ |_||||ƒ |j ¡  tj	}|jj
| j|< d dtjtjp8d d dœ}| j|  |¡ d S )Nr   )r  r™   )zmax-agerŒ   ÚdomainrÅ   Úexpires)r  r  r   r   rð   r   r÷   rò   ró   rñ   rô   r•   ÚSESSION_COOKIE_DOMAINÚSESSION_COOKIE_SECURErç   )r*   r  r  r  rõ   rP   Úsession_cookieÚcookie_datar.   r.   r/   r  m  s"   



ûzClient._loginc                 C   sX   ddl m}m} tƒ }ttjƒ}| jr| j|_||ƒ|_n| 	¡ |_||ƒ t
ƒ | _dS )z<Log out the user by removing the cookies and session object.r   )r  ÚlogoutN)r  r  r$  r   r   r   rð   r÷   r  rò   r   r•   )r*   r  r$  rP   rõ   r.   r.   r/   r$  ‰  s   

zClient.logoutc                 K   sN   t |dƒs$t | d¡¡std | d¡¡ƒ‚tj|j 	¡ fi |¤Ž|_
|j
S )NÚ_jsonzContent-Typez4Content-Type header is "{0}", not "application/json")ro   r¶   r±   rÍ   r@   Úformatrº   Úloadsr;   rÁ   r%  )r*   rQ   rÌ   r.   r.   r/   rþ   —  s   
þzClient._parse_jsonc                 K   s@  g |_ tjtjtjtjtjf}|j|v rž|j}|j }| 	||jf¡ t
|ƒ}|jr.|j|d< |jr6|j|d< |jr@t|jƒ|d< |j}	|	 d¡sPt|jd |	ƒ}	|jtjtjfv rdt| |jd  ¡ ƒ}
n
| j}
t|jƒ}d}|
|	f||dd	œ|¤Ž}||_ |d
 |dd
… v r�td|d�‚t|ƒdkr™td|d�‚|j|v s|S )zY
        Follow any redirects by requesting responses from the server using GET.
        r§   r¤   r¥   r™   r    r¢   NF)rƒ   r‰   r
  éÿÿÿÿzRedirect loop detected.)r(   é   zToo many redirects.)r)   r   ÚMOVED_PERMANENTLYÚFOUNDÚ	SEE_OTHERÚTEMPORARY_REDIRECTÚPERMANENT_REDIRECTrL   Úurlrc   r
   ÚschemeÚhostnameÚportr€   rŒ   Ú
startswithr   rP   ÚgetattrÚlowerrÍ   r   Úqueryr    rA   )r*   rQ   rƒ   r‰   rÌ   Úredirect_status_codesÚresponse_urlr)   r/  rŒ   Úrequest_methodr.   r.   r/   r  ¡  sD   û





Û'zClient._handle_redirectsrë   )NFF)r{   rŠ   FF)r{   FFr%   )r{   r{   )r0   r1   r2   r3   r'   rï   Úpropertyr÷   rP   rÍ   r®   rÑ   rÒ   rØ   rÜ   rß   rá   rÕ   r  r  r  r$  rþ   r  r4   r.   r.   r,   r/   r   ©  s>    
Dÿÿÿÿÿ


r   )Frº   rŽ   r‹   Úrerî   r   Ú	functoolsr   rž   r   Ú	importlibr   Úior   Úurllib.parser   r   r	   r
   Údjango.confr   Údjango.core.handlers.baser   Údjango.core.handlers.wsgir   Údjango.core.serializers.jsonr   Údjango.core.signalsr   r   r   Ú	django.dbr   Údjango.httpr   r   r   Údjango.templater   Údjango.testr   Údjango.test.utilsr   Údjango.urlsr   Údjango.utils.encodingr   Údjango.utils.functionalr   Údjango.utils.httpr   Údjango.utils.itercompatr   Ú__all__r¯   r®   Úcompiler°   r¶   Ú	Exceptionr    r5   rF   rR   rS   rg   r#   r"   r!   r   r.   r.   r.   r/   Ú<module>   sT    

$	06 )