Skip to main content

xy_request_handler__feedback

说明

基于xy_request_handler_api的反馈请求业务类,封装了常用功能,方便快速开发.

源码仓库

安装

# bash
pip install xy_request_handler__feedback

使用

1. 引入xy_django_app_feedback模型.(xy_request_handler__feedback依赖该模型,必须引入)

详情请查看 settings.py

# settings.py
INSTALLED_APPS = [
    "django.contrib.admin",
    "django.contrib.auth",
    "django.contrib.contenttypes",
    "django.contrib.sessions",
    "django.contrib.messages",
    "django.contrib.staticfiles",
    "Demo",
    "Resource",
    "Media",
    "xy_django_app_information",
    "xy_django_app_resource",  # xy_django_app_feedback将调用xy_django_app_resource的MImage模型
    "xy_django_app_feedback",
]
2. 引入xy_request_handler__feedback.

详情请查看 Runner.py

# Runner.py
from xy_request_handler__feedback.Feedbacks import Feedback
# 137行
urls = [
    (r"/", Index),
    (r"/query", Query),
    (r"/add", Add),
    (r"/delete", Delete),
    (r"/update", Update),
    (r"/demo", Demo),
    (r"/feedback", Feedback),
]
# ...
# bash
xy_web_server -w tornado start
# 启动服务后访问 http://127.0.0.1:8400/feedback?username=mobile&email=yuyangit.0515@qq.com&text=hello_world
# 相应结果如下:
# {
#     "data": {},
#     "message": "发送成功",
#     "code": 0
# }
# 开启另一个终端窗口, 执行如下命令
xy_web_server -w django start
# 启动服务后访问 http://127.0.0.1:8401/admin 进入后台后, 访问反馈管理进行验证

反馈图片

运行 样例工程

样例工程具体使用方式请移步 xy_web_server.git 下列仓库

许可证

xy_request_handler__feedback 根据 <木兰宽松许可证, 第2版> 获得许可。有关详细信息,请参阅 LICENSE 文件。

捐赠

如果小伙伴们觉得这些工具还不错的话,能否请咱喝一杯咖啡呢?

Pay-Total

联系方式

微信: yuyangiit
邮箱: yuyangit.0515@qq.com

Release files for xy-request-handler-feedback 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xy-request-handler-feedback 1.0.0
File Size Uploaded
xy_request_handler_feedback-1.0.0.tar.gz 13.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for xy-request-handler-feedback 1.0.0
File Interpreter ABI Platform
xy_request_handler_feedback-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 25.8 kB

Release files / xy_request_handler_feedback-1.0.0.tar.gz

Download URL xy_request_handler_feedback-1.0.0.tar.gz
Size 13.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b99c660f2440bdca40e8121d97a994c3c2369059194d055255d62f535c35defe
BLAKE2b-256 checksum
How to use checksums
b99ef414795d4b5dd4bdebb5d0b064008fd3b476acb3e51138b672455de2b8ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.3

Release files / xy_request_handler_feedback-1.0.0-py3-none-any.whl

Download URL xy_request_handler_feedback-1.0.0-py3-none-any.whl
Size 12.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
52be093562c88e7850315d57b108be65068a83e667f78fcf33b912f434ca795f
BLAKE2b-256 checksum
How to use checksums
099d345772647673b3fb9366fe24a0d282ce5e9cce065562b777e8c1d359e288
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.3

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page