Skip to main content

export Django Admin API by restful style

Project description

简体中文 | English

django-admin-api

Django Admin 前后端分离框架

版本要求

  • 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.8.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

django_admin_api-0.0.8-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file django-admin-api-0.0.8.tar.gz.

File metadata

  • Download URL: django-admin-api-0.0.8.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.3

File hashes

Hashes for django-admin-api-0.0.8.tar.gz
Algorithm Hash digest
SHA256 23ce48b63df923ea47b646728b5c90e0a2cb67b7666021e2f800270cbdc0ee2d
MD5 34d417a77c5be7a9cf5cb70c3e3c7c62
BLAKE2b-256 985d754c73562aff216d132b8584d9b0798674218cc5d535c3cc500658f3ecdc

See more details on using hashes here.

File details

Details for the file django_admin_api-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: django_admin_api-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 13.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.3

File hashes

Hashes for django_admin_api-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 e3080fa8451731f0f59824d6dd8a94d7e9cd3b1684e54d253cd86e33874f27ca
MD5 f885aba76085794007d5d9512daac79f
BLAKE2b-256 22944d6d0e7b8a352092a2c99670ab9962850544335cb9e5dfa0062512fc695c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page