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.2.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

django_uri-1.0.2-py2.7.egg (3.1 kB view details)

Uploaded Source

File details

Details for the file django-uri-1.0.2.tar.gz.

File metadata

  • Download URL: django-uri-1.0.2.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for django-uri-1.0.2.tar.gz
Algorithm Hash digest
SHA256 2fe21628ee13017a23eb48ff052467fd0e6460bea023556af3d57bfb377cdbdf
MD5 1da024635728b0d1d69bfaf5062278ec
BLAKE2b-256 3ce213494972f0eef54e666ca434214efdc0f83177c41dc75c78b188776fc0b0

See more details on using hashes here.

File details

Details for the file django_uri-1.0.2-py2.7.egg.

File metadata

File hashes

Hashes for django_uri-1.0.2-py2.7.egg
Algorithm Hash digest
SHA256 3a9f9eaddc469675e40469c20334c6e40fa64a1c001a30430bb76ff989ddafb7
MD5 b79877f08a50b195d6beb3cdceec8190
BLAKE2b-256 0125dd65af4f96a3b81134c01a13209348543aeb8bd870d6dd30dbc8c7178940

See more details on using hashes here.

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