Relative Content

Tag Archive for pythondjangodjango-viewsdjango-templates

How to implement follow/unfollow functionality without reloading the page in Django

I am building a web application using Django where users can follow or unfollow items (e.g., photos) from a list. Currently, I have implemented the follow/unfollow functionality, but it reloads the page every time the user clicks on follow or unfollow. I want to achieve this without reloading the page, so the user stays on the same page and the state changes (follow/unfollow) are reflected immediately.

Entries not showing on page

Cant seem to figure out why my entries from my database are not appearing on my page but my topics name on the entry page is

TemplateDoesNotExist at / (Django)

Trying to my create a home page, with django. I keep running into a TemplateDoesNotExist at error.
Im pretty sure it has something to do with my paths set up. I havent worked with django enough to debug this 🙁

Django multi language

I want my Django site to be available in both English and Azerbaijani languages.
This is how I wrote the codes for it. However, I do not know what is true. Is there an alternative? Does this method affect the speed of the site?