I have been making a form in html that has a checkbox and if checked it displays another checkbox using Javascript. I have now changed that form to use django's Form library but I don't know how to access the display attribute of the django i...
when i am trying to access data sent by django view from ajax i get undefined   django view :  def GetTenders(request): print request.POST if request.method == 'POST':     print request.POST.get('Page')     page_num = int(request.POST...
I just started a web app using Django and HTML/Javascript templates.  My Django spot app contains a Spot model that is sent to a HTML template - to be used with the Google Map Api. I've encountered a problem when looping over the variable spots c...
I try to semplify my situation:  I have two PC, PC1 ("server") is not on the web, instead the PC2 ("client") can surf on the web (they communicate between each other).  Into PC1 I have my Django project, DB etc.. while with PC2 I can...
js:  $(".collectionlist").click(function() {         alert('alert')                $.ajax({              data:{                 csrfmiddlewaretoken: csrf_token,                 collection:('{{collection}}')...
I need to render Product model as follows:  1 -  there are 2 check boxes for gender men/women   when user checks men only men products appear when user check women only women products appear when check both or uncheck both all products appear   so I...
I am attempting to have a button call a JavaScript script to create file and an href element then click itself to download the file. The file is created by calling a function via a model object, {{ graph.create_png_location }}. Here is what I have so...
I want to track how many clicks each link gets and want this to be stored in the database here under the courses model:  https://github.com/justdjango/video-membership/blob/master/courses/models.py  Line 9 specifically (will loop through multiple lin...
I have written a java script for the conformation box before deleting the comments. If user clicks delete, it should pop the box for delete conformation. If i have series of comments of same user, as i am printing the comments in loop the java script...
So, I want to get user input from my form (addDatabase.html) and display output of what they entered and let them download txt file with yaml formatted output (output.html).   It was working when I used Django's models.py using request.POST["...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.