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 |
vant(vue) | 移动端 | vant-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.7.tar.gz
(11.7 kB
view hashes)
Built Distribution
Close
Hashes for django_admin_api-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80085fcf2fb1ba64c452cb1bc72072487445dbbede1828f478b876c2193d510a |
|
MD5 | 05cbf1c68bb243b0776ef0d1016e6bbd |
|
BLAKE2b-256 | dce3fcc7e37f4604bdcc4787a1ec1dd00343435f228ceba2708ae1a5b6f8bc0b |