Files
myquant/djapi/.env.example
T
simon 6ec198687c feat(djapi): 新增日报查询 API(news/reports + news/events)及文档
- api/report/ 包:query(连库+SQL)/ views(2 视图)/ serializers(OpenAPI)/ tests(17 单测)
- urls.py 注册 news/reports/、news/events/;settings.py SPECTACULAR 加「日报」tag
- .env.example 补 NEWS_DB_* 占位配置;README/continuation.md 更新
- docs/news_report_api.md 使用手册;CLAUDE*.md 修正 CLI 路径为 finance/ 前缀
2026-08-05 20:51:42 +08:00

45 lines
1.2 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Django
DJANGO_SECRET_KEY=your-secret-key-here
DJANGO_DEBUG=True
# Tushare 股票数据
TUSHARE_TS_TOKEN=your-tushare-token
# MySQL
MYSQL_HOST=localhost
MYSQL_PORT=3306
MYSQL_USER=myquant
MYSQL_PASSWORD=your-mysql-password
MYSQL_DATABASE=myquant
# 日报结构化入库 (news_report / news_event) 只读查询
# 与 report_db_design.md §7 一致;密码必填,缺失时接口直接报错
NEWS_DB_HOST=127.0.0.1
NEWS_DB_PORT=3306
NEWS_DB_USER=myquant
NEWS_DB_PASSWORD=your-news-db-password
NEWS_DB_NAME=myquant
# DeepSeek AI
DEEPSEEK_API_KEY=your-deepseek-api-key
# 阿里 DashScope (ASR + Qwen)
DASHSCOPE_API_KEY=your-dashscope-api-key
# ========================
# 以下为 video 模块 AI 模型配置
# 修改后重启 uWSGI 生效
# ========================
# DeepSeek 模型名(视频分割 + 标题提取)
# 可用: deepseek-chat(推荐,支持 response_format, deepseek-reasoner
DEEPSEEK_MODEL=deepseek-chat
# DashScope ASR 语音识别模型
# 可用: paraformer-realtime-v2, paraformer-v2
DASHSCOPE_ASR_MODEL=paraformer-realtime-v2
# DashScope 大语言模型(文本纠错 + 文本分析)
# 可用: qwen-plus, qwen-max, qwen-turbo
DASHSCOPE_LLM_MODEL=qwen-plus