export Django Admin API by restful style
Project description
简体中文 | English
版本要求
- Python (3.5, 3.6, 3.7, 3.8, 3.9)
- Django (2.2, 3.0, 3.1, 3.2)
第一步: 安装
使用pip
安装...
pip install django-admin-api
第二步: 创建一个简单项目
django-admin startproject example
cd example
./manage.py migrate
./manage.py createsuperuser
INSTALLED_APPS
加入如下依赖.
# example/settings.py
INSTALLED_APPS = [
...
'rest_framework',
'django_filters',
'admin_api',
]
第三步: 输出API接口
# example/urls.py
...
import admin_api
urlpatterns = [
...
path('api/', admin_api.site.urls),
]
前端框架列表
框架 | 项目 |
---|---|
ant-design(vue) | antd-django |
element(vue) | element-django |
后端项目创建完成以后,移步到前端框架项目中...
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-admin-api-0.0.4.tar.gz
(10.8 kB
view hashes)
Built Distribution
Close
Hashes for django_admin_api-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 192bf96814db2b0f9853553ce16867bca08cdef92fc10abe981dd17d0704338c |
|
MD5 | bbcb5736657def31c2a07425a7348a19 |
|
BLAKE2b-256 | 58848d87f7c82c774e304bfe08a2f6d80b0c1eaff236998f807d3ca0c827142d |