I'm using Ajax (along with Django) to perform some action on button click. I successfully call the javascript function but I can't call the Django view. There are no errors but the print statement in my view doesn't print...?  urls.py  ur...
In a Django template, I have a function  function show_graph(i){     $("#"+i+"seegraph").click(function(){         $("#"+i+"graph").show();      var qaa = {{ question_ids }};      var qid = qaa[i-1];         jQuery.aja...
I have a FORMVIEW where a user selects a value from a dropdown, and if they select the value, and click submit, it performs an HTTPResponseRedirect to a URL and all is well.    If they forget to enter a value and click submit, they get an error messa...
Can a javascript function be called from django HttpResponseredirect or some other django function...
I am using Python- Django for my application. I want to kill the session when a user close his browser and want to store that session killing or browser closing time in database. Django sessions provide mechanism to expire session when a user close b...
I'd like to do some server side processing with their lat/long as soon as they agree to share them--I'd like for the results of that processing to be in the same page the users are in, immediately after they "Allow" location access....
Firstly, I didn't know how to give a short description of the problem in the title, let me explain it here.  I'm creating social site, with all common features like/comments etc. Imagine Twitter/Instagram. I do have main/home page where all p...
I am trying to learn Ajax technology the hard way. so, I created following part of my HTML:  In HTML:  <form id="form_{{ i }}_{{ j }}" action="" method="post">     {% csrf_token %}     <button class="ui green butt...
I am using Django framework. I have built one web application using Python and Django.  I am not using any classes or oops concept in my application. I am just using python's function.  for e.g.   def addnum(request):     a=request.GET.get('a...
I am new to Django  What I need:  1 - Run a python Script 2 - pass data to javascript file   I don't know whether the sentence I am framing is technically correct in terms of Django.  The following is the javascript code and python code resp.  va...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.