Skip to main content

反馈业务请求模块

Project description

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

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

xy_request_handler_feedback-1.0.0.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file xy_request_handler_feedback-1.0.0.tar.gz.

File metadata

File hashes

Hashes for xy_request_handler_feedback-1.0.0.tar.gz
Algorithm Hash digest
SHA256 b99c660f2440bdca40e8121d97a994c3c2369059194d055255d62f535c35defe
MD5 7702cac4b53984010d409fa0214bbb8d
BLAKE2b-256 b99ef414795d4b5dd4bdebb5d0b064008fd3b476acb3e51138b672455de2b8ee

See more details on using hashes here.

File details

Details for the file xy_request_handler_feedback-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for xy_request_handler_feedback-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 52be093562c88e7850315d57b108be65068a83e667f78fcf33b912f434ca795f
MD5 a0f18672f4a9848171e2533f70a1f151
BLAKE2b-256 099d345772647673b3fb9366fe24a0d282ce5e9cce065562b777e8c1d359e288

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