Skip to content

Sync create-django-project with the updated tutorial - #855

Open
realpython-bot wants to merge 1 commit into
masterfrom
maintenance/django-setup-20260920
Open

realpython-bot wants to merge 1 commit into
masterfrom
maintenance/django-setup-20260920

Conversation

@realpython-bot

Copy link
Copy Markdown
Collaborator

Companion sync for the maintenance update of How to Create a Django Project.

What changed

The tutorial now targets Django 6.1 (PyPI current: 6.1.1), so the folder is synced to what a reader gets today:

  • requirements.txt re-pinned to django==6.1.1, asgiref==3.12.1, sqlparse==0.6.0.
  • pyproject.toml dependency bumped to django>=6.1.
  • settings.py, urls.py, asgi.py, wsgi.py: generated docs links moved from en/6.0/ to en/6.1/, and the settings header now names Django 6.1.1.
  • settings.py gains the MAILERS block that django-admin startproject emits on Django 6.1, written in the folder's existing double-quote style.

The hand-applied house style in the folder (double quotes, # noqa: F401 markers, wrapped SECRET_KEY) is preserved — only the 6.0 -> 6.1 scaffolding deltas were applied, not a wholesale regeneration.

Verification

  • Fresh Python 3.12 virtual environment installed from the new requirements.txt (Django reports 6.1.1).
  • python manage.py check -> no issues; python manage.py migrate -> all migrations applied.
  • python manage.py runserver smoke test -> GET /admin/login/ returns HTTP 200.
  • Repo gates with the pinned ruff 0.14.1: ruff format --check (12 files already formatted) and ruff check both pass.

🤖 Generated with Claude Code

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.

1 participant