无需编写 Django Model,直接用外部 API 数据管理
Project description
🚀 Django Dynamic API Admin
无需编写 Django Model,直接用外部 API 数据管理
✨ 核心功能
- 🔄 零模型接入 - 无需创建 Django 模型,直接展示 API 数据
- 🔍 搜索过滤 - 支持多字段组合搜索
- 📊 智能排序 - 支持多字段任意排序
- 📄 文件处理 - 支持 PDF 等文件在线预览/下载
🛠️ 安装
pip install django-dynamic-api-admin
🚀 快速开始
# admin.py
from django.contrib import admin
from django_dynamic_api_admin import APIAdmin, api_model
@api_model('/api/users/')
class UserAPI:
pass
@admin.register(UserAPI)
class UserAPIAdmin(APIAdmin):
api_url = '/api/users/'
black_fields = ['password']
访问 Admin 页面,API 数据自动展示!
📖 文档
详见 example/ 目录
License
MIT
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
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_dynamic_api_admin-2.1.0.tar.gz.
File metadata
- Download URL: django_dynamic_api_admin-2.1.0.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a18220bcaa1b2230dce4866d8a8b9c1d65c50166ab906408d434f731618dbf09
|
|
| MD5 |
27e1f1a182c548f5e6f95edaafc5c7a0
|
|
| BLAKE2b-256 |
3b527c0286fb7978a3e17aa0cda16b2453318318c78bdcc0fbb5408b91335ac4
|
File details
Details for the file django_dynamic_api_admin-2.1.0-py3-none-any.whl.
File metadata
- Download URL: django_dynamic_api_admin-2.1.0-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b4b9e28809bd7a116e1091eb97233455b5dc4d1c002e21a3ede1f116e3bcad4
|
|
| MD5 |
4cfddf6a3cc49e7c2803602d71a3caf2
|
|
| BLAKE2b-256 |
1f992069b0484f89591d0891e75ddaf75fc848ec98f84bd910efedff1e6fe19a
|