【文件属性】:
文件名称:django-blockchain:与在 Django 中使用 blockchain.info 相关的代码
文件大小:6KB
文件格式:ZIP
更新时间:2021-06-21 21:35:14
Python
django-区块链
在 Django 中包装区块链 API!
实施了什么
实际并不多。 receive API。
警告
您必须实现自己的ReceiveNotification版本! 原因很简单,您可能对如何存储原始 JSON(参见 )或自定义字段等内容有不同的需求。
创建类很简单
from django_blockchain.models import ReceiveNotificationBase
class ReceiveNotification(ReceiveNotificationBase):
"""Fine with the defaults, thanks"""
pass
将虚线路径存储在设置中
BLOCKCHAIN_RECEIVE_NOTIFICATION_MODEL = 'yourapp.models.ReceiveNotification'
安装
【文件预览】:
django-blockchain-master
----setup.py(365B)
----.gitignore(6B)
----requirements.txt(19B)
----README.md(2KB)
----django_blockchain()
--------__init__.py(0B)
--------views.py(1KB)
--------models.py(3KB)
--------utils.py(892B)
--------migrations()
--------settings.py(496B)