DataTalksClub / DataTalksClub/community-base
api_keys.html uses `{% block content %}`, which consuming sites' Studio bases do not define
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 0
- Forks
- 0
- Avg merge
- 9m
- Merged PRs (30d)
- 210
Description
Found while fixing the consuming-site symptom in AI-Shipping-Labs/website#1737.
community_base/api/api_keys.html puts its whole body in {% block content %}. A consuming site whose Studio base defines a differently-named block — AI Shipping Labs' templates/studio/base.html defines {% block studio_content %} — silently drops the entire page body. The result is HTTP 200 with a correct page title and an otherwise empty shell: no create form, no key list, no revoke control, and no error anywhere to notice.
On AI Shipping Labs this meant /studio/api-keys/ has been non-functional since the package URLs were mounted, with the only issuing path for a package API key being a production shell. The POST route is unaffected and still works when hit directly.
DataTalksClub/website mounts the same package URLs and has the same latent failure; worth checking whether it renders there or is silently blank too.
AI Shipping Labs is fixing its own side by taking ownership of the view (it also needs to scope an unfiltered queryset, which a template-only change cannot do), and is deliberately not blocking that fix on a package release. Filing here so the package template does not keep shipping a block name that consuming sites are not required to define — either agree a contract for the block name, or have the package template extend a base the site is expected to provide.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with community_base/api/api_keys.html and compare its block inheritance with AI Shipping Labs' templates/studio/base.html; inspect how the mounted package URLs render the page. Check the corresponding DataTalksClub/website rendering if available. Done means the block contract is agreed and the API keys page retains its create form, key list, revoke control, and errors in consuming sites.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- django, python
- Domain
- authentication, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100