Skip to content

chore: update allowed hosts for Docker internal network - #1270

Merged
serkodev merged 4 commits into
masterfrom
feat/docker-host
Jul 27, 2026
Merged

chore: update allowed hosts for Docker internal network#1270
serkodev merged 4 commits into
masterfrom
feat/docker-host

Conversation

@serkodev

Copy link
Copy Markdown
Member

Types of changes

Thanks for sending a pull request! Please fill in the following content to let us know better about this change.
Please put an x in the box that applies

  • Bugfix
  • New feature
  • Refactoring
  • Breaking change (any change that would cause existing functionality to not work as expected)
  • Documentation Update
  • Other (please describe)

Description

Allow frontend web to request via Docker network host http://pycontw-2026[:XXXX]/

Steps to Test This Pull Request

Request http://pycontw-2026[:XXXX]/ in the same docker network.

Expected behavior

Request success.

@codecov

codecov Bot commented Jul 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.60%. Comparing base (aed3685) to head (dec917f).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1270   +/-   ##
=======================================
  Coverage   74.60%   74.60%           
=======================================
  Files          84       84           
  Lines        3186     3186           
=======================================
  Hits         2377     2377           
  Misses        809      809           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@serkodev
serkodev requested review from Lee-W and mattwang44 July 26, 2026 09:08

@Lee-W Lee-W left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

one nit. overall LGTM

from .base import * # noqa
from .base import BASE_DIR, STATICFILES_DIRS, TEMPLATES
from .base import (
ALLOWED_HOSTS as BASE_ALLOWED_HOSTS,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Would like to check why do we need this alias

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I just used the alias to make it clear that we’re extending the value from the base settings before overriding it here. If you think it’s unnecessary, I can keep the code as follows:

ALLOWED_HOSTS = [*ALLOWED_HOSTS, CONFERENCE_DEFAULT_SLUG]

Comment thread src/pycontw2016/settings/production/pycontw2026.py Outdated
@serkodev
serkodev merged commit f34ddab into master Jul 27, 2026
3 checks passed
@serkodev
serkodev deleted the feat/docker-host branch July 27, 2026 06: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.

3 participants