simonw / simonwillisonblog

The source code behind my blog
https://simonwillison.net/
Apache License 2.0
203 stars 19 forks source link

Draft mechanism #488

Closed simonw closed 2 months ago

simonw commented 2 months ago

I want to be able to create draft posts with secret URLs and share them with people before they go live.

simonw commented 2 months ago

Mostly implemented in here:

simonw commented 2 months ago

It's showing up in recent articles:

CleanShot 2024-09-17 at 23 27 40@2x

simonw commented 2 months ago

And in next/previous:

CleanShot 2024-09-17 at 23 28 26@2x

simonw commented 2 months ago

https://docs.djangoproject.com/en/5.1/ref/models/instances/#django.db.models.Model.get_next_by_FOO

simonw commented 2 months ago

Here's my test draft entry: https://simonwillison.net/2024/Sep/18/draft-entry/

simonw commented 2 months ago

That fixed it.

simonw commented 2 months ago

CleanShot 2024-09-18 at 00 00 45@2x

Count leaking through there.