Blog
Django integration tips
Short Django recipes: passwordless login, Stripe payments, background tasks, Tailwind, login lockout. Each one has the code to copy and the settings it needs.
Auth
-
How to add magic-link login to Django
Passwordless sign-in with django-mail-auth. Stock
auth.Usermakes it a hijack risk. -
Stop brute-force logins in Django with django-axes
Seven settings configure django-axes. One of them turns the lockout off in the wrong place.
Billing
-
How to add Stripe Checkout to Django
Two views and one field on the user model. An idempotency key prevents duplicate customers after a double click.
Background work
-
How to add Celery to Django with Redis
Configure the app object and two Redis databases. Then set the two time limits that Celery omits.
Frontend
-
Tailwind CSS in Django without Node
The standalone binary and one template tag. The startup error names everything except Tailwind.