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='django_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'), ] urlpatterns += [ url(r'^set_cookie$', uni_views.set_cookie, name='set_cookie'), url(r'^del_cookie$', uni_views.del_cookie, name='del_cookie'), url(r'^del_cookie2$', uni_views.del_cookie2, name='del_cookie2'), ]
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.9.tar.gz
(2.6 kB
view details)
Built Distribution
File details
Details for the file django-uniapi-1.0.9.tar.gz
.
File metadata
- Download URL: django-uniapi-1.0.9.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ad614d7dfe4a30f697d8791abf1b9e9be9501f7bbb44ea8eaeb200f75a14d95 |
|
MD5 | 651711cb3a11607414441ec21bee4e2e |
|
BLAKE2b-256 | 7d9faf2f5a0653ba3906d0afc77c7ef0a74c325ad76f5317e5a5d495e9455e3f |
File details
Details for the file django_uniapi-1.0.9-py2.py3-none-any.whl
.
File metadata
- Download URL: django_uniapi-1.0.9-py2.py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1da86ee13aac905a0c15a11acdf3c4240dacc6b405de18e85a1f98f1cbb3e9d4 |
|
MD5 | 6df2c64fe8781c6f1aff9eac2a3bebfa |
|
BLAKE2b-256 | 4f5fa31b5d162e92f61f3f596d239a4eaf3aa9515f54c6ac1035fd07d803e8b2 |