Skip to main content

Django URI

Project description

Components of an URI

http://ww4.sinaimg.cn/large/c05783a7gw1f2h380qt9jj21500i8q5o.jpg

Installation

pip install django-uri

Usage

request.uri.origin
request.uri.scheme

Settings.py

# Use `MIDDLEWARE_CLASSES` prior to Django 1.10
MIDDLEWARE = (
    ...
    'uri.middleware.URIMiddleware',
    ...
)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-uri-1.0.4.tar.gz (2.0 kB view hashes)

Uploaded source

Built Distribution

django_uri-1.0.4-py2.py3-none-any.whl (2.6 kB view hashes)

Uploaded py2 py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page