https://github.com/yowenter/daovoice-plugin-template
A handy template for creating a new reusable DaoVoice Plugin Django application.
https://github.com/yowenter/daovoice-plugin-template
django template
Last synced: 9 months ago
JSON representation
A handy template for creating a new reusable DaoVoice Plugin Django application.
- Host: GitHub
- URL: https://github.com/yowenter/daovoice-plugin-template
- Owner: yowenter
- Created: 2017-05-22T07:46:46.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-23T04:20:00.000Z (over 8 years ago)
- Last Synced: 2025-02-15T20:49:52.064Z (11 months ago)
- Topics: django, template
- Language: Python
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
daovoice-plugin-template
-------------------------------
DaoVoice 插件 Django 应用模版, 帮您快速创建第一个插件。
**使用指南**::
- git clone git@github.com:yowenter/daovoice-plugin-template.git
- django-admin startapp --template={daovoice-plugin-template repo directory }/app_template myapp
- add daovoice_url_patterns in urls.py to django urlpatterns
**模块详解**::
- ``plugin.json``, 您的插件 Schema 。
- ``html``, 您的插件页面
- ``views.py``, 插件逻辑代码。 包含 处理 Daovoice WebHook 逻辑和插件设置保存逻辑。
- ``models.py``, DaoVoice 插件数据模型。
- ``urls.py``, DaoVoice 插件路由