Sync nearbyshops with the updated tutorial - #874
Open
realpython-bot wants to merge 1 commit into
Open
realpython-bot wants to merge 1 commit into
realpython-bot wants to merge 1 commit into
Conversation
… Web App With Django and GeoDjango Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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
nearbyshops/with the maintenance update of Make a Location-Based Web App With Django and GeoDjango.What changed
shops/admin.py:OSMGeoAdminwas removed in Django 5.0, so the admin now usesGISModelAdmin, matching the updated article.nearbyshops/settings.py: droppedUSE_L10N(removed in Django 5.0) and setDEFAULT_AUTO_FIELD = "django.db.models.AutoField"to match the existing0001_initialmigration and silencemodels.W042.requirements.txt(new): pins the article'sdependenciesfield,django==6.1.1andpsycopg2-binary==2.9.13.readme.md: adds a Requirements section (Python 3.12 or later, which is Django 6.1's floor, plus GDAL/GEOS/PROJ and a PostGIS database) and thekartoza/postgis:18-3.6command the article now uses.Verification
manage.py check: no issues.manage.py migrateapplies both migrations and loads all 100 shops fromdata.json./(the six nearest shops) and for the admin changelist, add, and change pages. The add and change pages render the OSM map widget.runserverserves/with a 200.ruff@0.14.1 format --checkandruff@0.14.1 checkpass.Draft article: https://realpython.com/pbjt/blog/post/2457/change/
Maintenance card: https://trello.com/c/iUHUfici
🤖 Generated with Claude Code