A longstanding inconvenience posting on my site has been selecting myself as the Author for each post. Now the logged-in user’s profile (me) is the default when creating a new post.
A longstanding inconvenience posting on my site has been selecting myself as the Author for each post. Now the logged-in user’s profile (me) is the default when creating a new post.
I made some changes to my Notes:
@ben@social.benjaminturner.me ah yes, I see. I have ideas but nothing concrete. Something along the lines of an abstract model giving structure for models that support micropub? and then a view mixin like you have that can handle the micropub request parsing/response returning…
Thanks for sharing!
@ben@social.benjaminturner.me sure! https://github.com/blineberry/django-micropub-poc
Commit ce3cd78
is the last one that works. A lot more on the IndieAuth than the Micropub side.
Where is your from_url
method? Getting the relevant model from the url was a tricky spot. I settled django.urls.resolve
, but that still felt like I needed to do a lot of manual checking.
And did you find a clean way to convert the form data into something useful? I was trying to convert it to json and then only work with json, but never completed.
This week I made the Chow Mein with Beef and Peppers recipe from J. Kenji Lopez-Alt’s The Wok cookbook. It seems similar to last week’s noodles, but as a main instead of a side.
I thought it was fine, Megan seemed to like it, and my son loved the meat: 3 stars ★★★☆☆