Skip to main content

Django General/Universal API

Project description

Django General/Universal API

Installation

pip install django-uniapi

Urls.py

urlpatterns = [
    url(r'^uniapi/', include('django_uniapi.urls', namespace='uniapi')),
]

or:

from django.conf.urls import include, url
from django_uniapi import views as uni_views

urlpatterns = [
    url(r'^status$', uni_views.server_status, name='server_status'),
    url(r'^time$', uni_views.server_time, name='server_time'),
    url(r'^error$', uni_views.raise_error, name='raise_error'),
]

Settings.py

INSTALLED_APPS = (
    ...
    'django_uniapi',
    ...
)

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-uniapi-1.0.6.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

django_uniapi-1.0.6-py2.py3-none-any.whl (3.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django-uniapi-1.0.6.tar.gz.

File metadata

  • Download URL: django-uniapi-1.0.6.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/18.5 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/2.7.10

File hashes

Hashes for django-uniapi-1.0.6.tar.gz
Algorithm Hash digest
SHA256 549af1884e0f0824b209e5893a92db1bc595d7e0f28231596d6e06ef4d261654
MD5 7556d75800599cee622ed70d8668a44c
BLAKE2b-256 e157dc9551ff7f8527da0a760265d4fa52d3e8c89f03ad7cece657d3a358e9b8

See more details on using hashes here.

File details

Details for the file django_uniapi-1.0.6-py2.py3-none-any.whl.

File metadata

  • Download URL: django_uniapi-1.0.6-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/18.5 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/2.7.10

File hashes

Hashes for django_uniapi-1.0.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c13e71c1de06653cc5549d446e4d2d84abb5216eb1d7bafec66500d24387148d
MD5 f6fd82b89d87b794fcaac7e91329557f
BLAKE2b-256 7b6544fa6ebd385c9c566786ef01fc0b0a683f8be98404b3287472b33a6393b5

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