Repository navigation
Sync django-hosting-heroku with the updated tutorial - #888
Merged
realpython-bot merged 3 commits intoDec 6, 2026
Merged
Conversation
…jango Project on Heroku Heroku no longer auto-provisions Postgres for new accounts, so the deploy steps now provision the essential-0 plan explicitly, matching the updated tutorial. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Move every step snapshot to Python 3.15 and Django 6.1.4 and replace django-heroku with Gunicorn, WhiteNoise, dj-database-url, and psycopg, matching the updated article. Replace runtime.txt with .python-version, serve the web process with Gunicorn, and update the README.
realpython-bot
deleted the
maintenance/django-hosting-on-heroku-20261016
branch
December 6, 2026 07:08
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Syncs
django-hosting-heroku/with the full update of Hosting a Django Project on Heroku. The earlier commit on this branch only added one README line. This commit brings every step snapshot in line with the update draft.Changes
django-admin startprojecton Django 6.1.4 / Python 3.15, then formatted with ruff (double quotes).django-heroku,psycopg2, andruntime.txtremoved. Steps 7, 8, and final now have.python-version(3.15),Procfilewithweb: gunicorn portfolio.wsgi(plusrelease: python manage.py migratein step 8 and final), and settings configured by hand:ALLOWED_HOSTS,CSRF_TRUSTED_ORIGINS, WhiteNoise middleware +STORAGES,STATIC_ROOT,dj_database_url.config()with SQLite fallback, andSECRET_KEYfrom the environment.requirements.txtpins match the article'sdependenciesfield: Django 6.1.4, gunicorn 27.0.1, whitenoise 6.12.0, dj-database-url 3.1.2, psycopg[binary] 3.3.9..gitignoreregenerated from the article's gitignore.io URL, withstaticfiles/added in steps 7+.DEBUGconfig var removed.Verified (Python 3.15.2, clean venv per snapshot, installed from each
requirements.txt):manage.py checkpasses in every snapshot. Steps 1–2:runserverreturns 200. Steps 7, 8, and final:collectstatic(130 files, 390 post-processed),heroku local(CLI 11.14.0) returns 200 on0.0.0.0:5006, WhiteNoise serves/static/admin/css/base.csswith 200, andmigrateruns against PostgreSQL 16 throughDATABASE_URL. ruff 0.14.1 format/check anddircheck.pypass.Draft: https://realpython.com/pbjt/blog/post/2537/change/
Card: https://trello.com/c/weL05eZQ
🤖 Generated with Claude Code