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.6.tar.gz
(11.2 kB
view hashes)
Built Distribution
Close
Hashes for django_admin_api-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96f337f0084952cb9e70f10584415da9311f02c2eaeabed7fc810e997135547b |
|
MD5 | 58ca280f9d9843d8e6f31a89f0e8551a |
|
BLAKE2b-256 | 9f1814c9282e0fea2ed8daf5fd3c9d5580896a142dee9da7df26de953d9d4399 |