URL Parse

Components of an URI

Django Request

django-uri

  • Installation

    pip install django-uri
    
  • Settings.py

    MIDDLEWARE_CLASSES = (
        ...
        'uri.middleware.URIMiddleware',
        ...
    )
    
  • Usage

    request.uri.origin
    request.uri.scheme
    

References

[1] [email protected], django-uri — Django URI

[2] Wikipedia, Uniform Resource Identifier

results matching ""

    No results matching ""