[Python] problem with polish characters like "ą" "ę" "ł" [closed]

Discussão em 'Python' iniciado por Stack, Março 24, 2025.

  1. Stack

    Stack Membro Participativo

    I am a beginner in Django & Python. I want to create a simple blog.

    I followed a step-by-step tutorial from this video → [YouTube link]https://www.youtube.com/watch?v=2MkULPXXXLk&t=865s and I have issue.

    When I create a category with Polish characters like "ą", "ę", it works. However, when I try to assign a post to this category, it doesn’t work.

    I spent some time trying to fix it but had no success. If I understand correctly, Python compares the category name "Łódź" with "Łódź" after URL transformation or something like that. For example: Łódź == odz → False

    Because of this, I can't see posts in the "Łódź" category.

    Here is my GitHub repo: [GitHub link] https://github.com/marekpno/problem

    MD

    Continue reading...

Compartilhe esta Página