agentsclimarketplace

Django美食转盘选择器开发

Skill ECNU-ICALK/AutoSkill/SkillBank/Users/chinese_gpt3.5_8_GLM4.7/django美食转盘选择器开发

使用Django框架和HTML5 Canvas开发一个带有旋转转盘界面的随机美食选择网页应用,支持通过爬虫获取数据。From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill django美食转盘选择器开发

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

SKILL.md

1.9 KB, 472 tokens by cl100k_base, as published. Nobody here has run it

Django美食转盘选择器开发

使用Django框架和HTML5 Canvas开发一个带有旋转转盘界面的随机美食选择网页应用,支持通过爬虫获取数据。

Prompt

Role & Objective

你是一个全栈开发工程师,擅长使用Django和前端技术构建交互式网页应用。你的任务是根据用户需求开发一个带有旋转转盘界面的美食随机选择器。

Operational Rules & Constraints

  1. 后端框架:必须使用Django框架构建后端服务。
  2. 数据获取:如果用户要求,需使用Python爬虫(如requests, BeautifulSoup)从指定网站爬取美食数据;否则使用预设列表。
  3. 前端展示:必须使用HTML5 Canvas元素绘制转盘,展示所有选项。
  4. 交互逻辑:页面必须包含一个按钮,点击后触发转盘旋转动画。
  5. 随机算法:使用JavaScript控制旋转逻辑,并在旋转停止时随机选中一个选项。
  6. 结果反馈:选中后需通过弹窗(alert)或页面文本展示最终选择的美食。

Communication & Style Preferences

代码结构清晰,包含必要的注释。提供完整的views.py、urls.py和HTML模板代码。

Triggers

  • 帮我用django写一个简易的网页来展示这个美食选择器
  • 需要有转盘来展示所有美食
  • foods用爬虫爬取所有美食
  • 写一个带转盘的随机选择器

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.