Blogging and Bury the Mess

oh...

Posted on November 15, 2025

The blog was reconstructed yesterday, moving from plain HTML to Flask/HTML. The style remained the same. The new template makes posting easier, and what’s more important for me is the yet-to-be-implemented comment section.

++ It actually looks even worse now.

++ The HTML tags were broken until I added |safe to the template.


The original posts have been moved to the new template, though some pictures are still missing.

++ I hope I’ll finish the comment section soon.


I had some web tools, dont even know why they are here.

++ added the display all / preview choices


the next day I had even more struggle, the uwsgi+flask worked locally but fail to move to server, I could not understand that error log:

connect() to unix:/opt/page/page.sock failed (13: Permission denied)

and was checking permissions pitifully for 3 hours.

Yes there was some silly error and every time ...


nginx.conf


location /static/ {
    # This path must match the location of your Flask app's static folder
    alias /dir/.../static/;
}

# 2. Main location block: Proxy everything else to uWSGI
location / {
    include uwsgi_params;
    # Pass requests to the uWSGI socket of your Flask application
    uwsgi_pass unix:/dir/.../page.sock;
}

modified css file and it didnt render..

again..Below didnt work,


sudo nginx -t && sudo systemctl reload nginx

but clear cache helped...


+++25.12.26 now there is a script to update post and edit old posts

+++wish myself luck adding the comment session

← Back to Posts

Leave a Comment


m
m
March 15, 2026 at 01:00 PM
I want to test comment session, the nginx is no longer used, the blog is packed in a docker now.