Skip to content

Tag: django

Show all articles from specific category [django]

I want show all Articles from specific category in my template ‘category_articles.list.html’ at the link: path(‘category/<name_of_category_SLUG>/’ I have: URLS MODELS VIEWS ARTICLES_LIST.HTML template ARTICLE_DETAIL.HTML template finally…. CATEGORY_ARTICLES_LIST.HTMLtemplat…

Unexpected datetime behavior

I have a Django project where I used the strftime function like this in models.py: However, for some reason this returns a ValueError, even though according to a documentation (https://www.programiz.com/python-programming/datetime/strftime) this is a valid format string. Once I removed all the dashes, it work…

Django Query Multi Table

I’m trying to do a form query on a field and the goal is to get all the kids enrolled in all the teachers classes in this drop down menu. The query I have right now is getting all the classes a teacher is enrolled in . However how do I retrieve the kids within those classes. I attached a

Multi Language DjangoCMS

I want use multi language in my project . I had install cms app core . But this app only English language. But I want multi language when I choose option . So I have to create anorther app or create new template or anything ? . I don’t know how to do it . Let me know the solution