Usage in App is not working because of namespace issues
维护者通常 1 天内回复
@peterbaumert 已经在做这个了。
开始于 2023年11月24日。
评估
这个 Issue 还没有评估数据。
描述
If I use joeflow in an app in my project, the method to get the url namespace returns a wrong resulst.
it should be something like
return f"{cls._meta.app_label}:{cls.__name__.lower()}"
maybe somehow conditionally check if cls._meta.app_label exists
additionally one needs to specify the urls as follows:
path(
"whateveriwant/",
include(workflows.VeryCoolWorkflow.urls(), namespace="verycoolworkflow"),
),
- 主要语言
- Python
- 星标
- 107
- 派生
- 27
- 平均合并
- 4 小时 30 分钟
- 30 天内合并 PR
- 13
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
相似的 Issue
-
[Bug]: IndexHandler.post crashes with HTTP 500 on malformed payloads, missing credentials, or when login is disabled可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 6 天内回复
-
github_actions
难度 2/5 1-3 小时 新手友好度 65/100
collective/icalendar#2003 · 1 条评论 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 79/100
-
难度 2/5 1-3 小时 新手友好度 68/100
openzim/python-scraperlib#360 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
volcengine/OpenViking#6445 ·
维护者通常 1 天内回复