Skip to content

Fix Django dev server port and add foo/bar favicons#82

Merged
SeanHealy33 merged 1 commit into
mainfrom
SeanHealy33/minicom-django-port-mismatch
Jul 6, 2026
Merged

Fix Django dev server port and add foo/bar favicons#82
SeanHealy33 merged 1 commit into
mainfrom
SeanHealy33/minicom-django-port-mismatch

Conversation

@SeanHealy33

Copy link
Copy Markdown
Contributor

Context

During Minicom setup, two rough edges surfaced:

  1. Port mismatch. script/django/start launched the Django dev server on port 3001, but the foo/bar frontends hardcode the backend at http://localhost:3000 (foo.js:3, bar.js:3) with no proxy layer. As a result the "Yay! Everything works" call failed until the port was manually edited. Every sibling framework already targets 3000 (Rails default, Node server.ts = PORT || 3000) and README.md:54 documents the webserver at http://127.0.0.1:3000 — Django was the lone outlier.
  2. Missing favicons. foo-website/index.html and bar-website/index.html declared no <link rel="icon">, so browsers auto-requested /favicon.ico from the 8008/8009 static servers and got 404s.

Changes

  • script/django/start: bind the dev server to 3000 (was 3001), matching the frontends, siblings, and the README.
  • foo-website/favicon.svg, bar-website/favicon.svg: new inline SVG marks (text, no binary blob).
  • foo-website/index.html, bar-website/index.html: add <link rel="icon" type="image/svg+xml" href="favicon.svg" />.

No docs changes needed — README.md:54 already documents 3000, and django/README.md has no port reference.

Verification

  • Ran script/django/setup then script/django/start → server logs on port 3000 and binds 3000.
  • POST http://localhost:3000/foo200 {"success": true}
  • POST http://localhost:3000/bar200 {"success": true} (the exact response the success alert checks).
  • Served the foo site statically → GET /favicon.svg returns 200 OK with Content-Type: image/svg+xml; the icon link is present in the served HTML.

Generated with Claude Code

The Django start script bound the dev server to port 3001, but the foo
and bar frontends hardcode the backend at localhost:3000 (with no proxy
layer). Every sibling framework and the README already target 3000, so
Django was the lone outlier — move it to 3000 so the pages work without
a manual edit.

Also add SVG favicons to the foo/bar static sites, which previously
declared no icon link and produced 404s for /favicon.ico.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Comment thread bar-website/index.html
new Bar();
</script>

<link rel="icon" type="image/svg+xml" href="favicon.svg" />

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

God's work

@SeanHealy33 SeanHealy33 merged commit 2c5785f into main Jul 6, 2026
3 checks passed
@SeanHealy33 SeanHealy33 deleted the SeanHealy33/minicom-django-port-mismatch branch July 6, 2026 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants