Skip to content
Advertisement

Tag: django

How to display a model data dynamically in Html?

I have a model and in a function this model is updating. I want to display this model’s data dynamically. So, new values should display without refreshing the page. How can I do it? models.py views.py functions.py setup_wizard.html All my function works fine. When I looking the MyLongProcess from Django admin and refresh the page, values are updating. Just I

Adding an Array to an a href link using Javascript/Jquery

I’m currently writing a functionality, whereby the users will click on a particular email and this will be added to a list in the local storage, thereafter, the user will click a button, essentially that button should popular a href tag, so that all the mail addresses are copied to user’s default email settings (in my case outlook). My question

owl Carousel is not working after ajax success in python Django

I want to get the parent category list on the slider by clicking the main category’s slider list. the second category’s sider is not working when I click the main category. $(‘.maincategory’).owlCarousel({ }); Answer The .empty() method clears element content but doesn’t destroy the existing Owl carousel instance on that element, you need to this with $(“.secondCategory”).trigger(“destroy.owl.carousel”) before setting the

Django refresh page without reload whole page

I want to refresh the page at certain intervals, for example, every 10 seconds, without reloading the page. I’m sending get request to api. My ajax codes refreshes the page well but it’s causing problems because it loads all the divs again and again. How can I make the div-focused refresh delete the same previous div when refreshing? hmtl; url.py;

getting errolist when using htmx and tinymce

Im trying to implement post request with htmx and for rich text editor using tinymce. my form : The error I get : it works just ok when I used the traditional post request with TinyMCE. when I used htmx without TinyMCE its work just fine too. it just when I combine htmx and TinyMCE I get the error. my

Advertisement