Closed FranckBoyer closed 2 years ago
Thanks! This does certainly look like a bug so nice catch. I'm going to write a test to catch this before merging your PR so it doesn't regress in the future.
Thanks, all looks good. Merged in and I'll bundle this into the next release.
@meeb This bug has regressed.
https://quay.io/repository/heliumos/website/build/bba0dd5b-2224-4598-9759-2222f40095d4
Rendering page: blog/post/heliumos-v9-alpha-is-available-for-downlaod/index.html -> /build/dist/blog/post/heliumos-v9-alpha-is-available-for-downlaod/index.html ["text/html; charset=utf-8", 8604 bytes] (renamed from "/blog/post/heliumos-v9-alpha-is-available-for-downlaod/")
Rendering page: blog/post/heliumos-v9-alpha-is-available-for-downlaod/index.html -> /build/dist/blog/post/heliumos-v9-alpha-is-available-for-downlaod/index.html ["text/html; charset=utf-8", 9910 bytes] (renamed from "/blog/post/this-month-in-heliumos-august-2024/")
This is under the "make build" step of the CI build.
The bug is present in 3.0.0 but not 2.10.2
Thanks I'll take a look at what changes impacted this. Does your original example trigger this again?
Edit: your quay.io link requires authentication to see the content.
Edit edit: you've typo'd "downlaod" in your blog post URL :)
Here's another link to the logs: https://privatebin.net/?d8fa26309e96ba99#Bhqr2Qh4A4z2hWzg1r7hjyT7DCeY5AukLzQR5GDum1wf
You can reproduce by building the Containerfile at this commit https://codeberg.org/HeliumOS/website/src/commit/43d23d5bcbd23b65dc56a930dacb22f400678130
My latest commit uses 2.10.2 and works, but django-distill is pinned to 3.0.0 in this commit.
you've typo'd "downlaod" in your blog post URL :)
I corrected the title, but I had already shared links with "downlaod" in the url. Thank you :)
Before I spend any time debugging this, 3.0.0 is over 2 years old. Can you try the latest 3.2.7 release?
It is not present with 3.2.7
I'm sorry for the false alarm.
No problem!
Suppose you have the following URL pattern in the
urls.py
distill_path('blog/<int:pk>/', detail_view, distill_func=lambda : [1,2])
I suppose that thedistill-local
command should create two different filesblog/1/index.html
andblog/2/index.html
but this is not the case.It simply overwrites the file
blog/1/index.html
for each value of thepk
:With the PR I propose it seems to work the way it should :
Thanks for this very nice package !