django-express-gateway-0.0.3
توضیحات
Integrating Django with Express Gateway
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | django-express-gateway-0.0.3 |
| نام | django-express-gateway |
| نسخه کتابخانه | 0.0.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Khemanorak Khath |
| ایمیل نویسنده | khath.khemanorak@gmail.com |
| آدرس صفحه اصلی | https://github.com/NorakGithub/django_express_gateway |
| آدرس اینترنتی | https://pypi.org/project/django-express-gateway/ |
| مجوز | MIT license |
# Express Gateway With Django
Integrating Django with Express Gateway
## Requirements
- Python 3 or later
- Django 2 or later
- Django Rest Framework 3.7 or later
- Requests 2.19 or later
## Installation
Install with pip
```bash
$ pip install django_express_gateway
```
## Getting Started
Add `express_gateway` to your `INSTALLED_APPS`
```python
INSTALLED_APPS = [
...
'express_gateway',
]
```
Add authentication to DRF default authentication settings
```python
REST_FRAMEWORK = {
'DEFAULT_AUTHENTICATION_CLASSES': (
'express_gateway.authentications.AuthUserAuthentication',
'rest_framework.authentication.SessionAuthentication',
'rest_framework.authentication.BasicAuthentication',
),
...
}
```
Finally add the configuration for Centralize Authentication System.
```python
# Config data should get from environment variable
EXPRESS_GATEWAY = {
'URL': 'https://mycas-server.com',
'API_KEY': 'testingApiKey',
'ENDPOINTS': {
'register': '/auth/user/
'token': '/auth/token/',
}
}
```
# History
### 0.0.1
* First stable release on PyPI
نحوه نصب
نصب پکیج whl django-express-gateway-0.0.3:
pip install django-express-gateway-0.0.3.whl
نصب پکیج tar.gz django-express-gateway-0.0.3:
pip install django-express-gateway-0.0.3.tar.gz