Add your description here
Project description
django-amisproxy
============ django-amisproxy 标准模板============
django-amisproxy 将django_rest_admin自动生成的drf标准api接口转换成amis后端服务接口应用,方便amis前端直接使用BI。
快速设置
- "amisproxy" 在 INSTALLED_APPS setting 加入 :
INSTALLED_APPS = [ ..., "amisproxy", ]
- 必须设置Drf分页查询
REST_FRAMEWORK = {
"DEFAULT_PARSER_CLASSES": [
"rest_framework.parsers.JSONParser",
]
'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination',
'PAGE_SIZE': 10, # 每页显示个数
}
API_PROXY_TARGET = 'http://localhost:8000/api/'
- 项目路由mysite/urls.py:
path('amis-api/', include('amisproxy.urls')),
- 数据迁移
manage.py migrate
- 登录django管理 /admin 完成数据配置
/amis-api/ 替换 django-rest-admin的服务地址/api/进行访问
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django_amisproxy-0.2.0.tar.gz
(14.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_amisproxy-0.2.0.tar.gz.
File metadata
- Download URL: django_amisproxy-0.2.0.tar.gz
- Upload date:
- Size: 14.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb209eeb66c627180af2057eb23a3ed6246cadf9133e075da7a61ee8698a3f8f
|
|
| MD5 |
e1344c438fab774a8d51b6c89c51956a
|
|
| BLAKE2b-256 |
2d1eee847621aa6629a6686c0bc50c94099c92c410f684f749d23340707034ac
|
File details
Details for the file django_amisproxy-0.2.0-py3-none-any.whl.
File metadata
- Download URL: django_amisproxy-0.2.0-py3-none-any.whl
- Upload date:
- Size: 13.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
15e2d19175290ba75ebe2319571d9efd874886cbdad37b636ea6c33d1cc20bac
|
|
| MD5 |
1106433f258f9a9883f7507028da6f70
|
|
| BLAKE2b-256 |
60f12813d55ad79b5680fdf129ce984b9a3f6cc5e937dfc2b3edce56ba647b4c
|