0
votes
1answer
56 views

Passing objects from template to view using Django

I am trying to figure out the architecture for the following app: The user is presented with a table. Each table cell has several fields the user will be filling in. There is a general submit ...
0
votes
1answer
98 views

Django request.user Not Resolving SimpleLazyObject

I have a method in my Django app that uses a user ID to find an object. This method is called via an AJAX call. When logged in to a valid user account, no matter what I try, request.user evaluates ...
1
vote
2answers
74 views

Django pass var from view to two template in the same time

I would like to pass var from a view to the template and to a javascript library (javascript.js) in the same time. Is it possible? view.py: def setAppOptions(request, map_name): if ...
0
votes
2answers
61 views

django modify request parameters in templates

So I wrote an app that returns an the query results. Let's assume the query URL is /query/?A=a&B=b And now I want to add a "sort by" button to my results page to allow the users to sort the ...
1
vote
1answer
108 views

Django html template:According to selection of category how can get subcategory list in drop down which are belongs to selected category

I am doing a django application. I need to select category and subcategory both lists I am passing from views.py. Subcategory list had a foreign key of category list. To display lists in drop down I ...
0
votes
1answer
94 views

converting html form to use django form library

I am new to django and I didnt know that it included a forms library. I have written a dynamic form in html and javascript that shows checkboxes and if clicked, they display more input fields. I am ...
0
votes
1answer
161 views

Django: Password check returning false in view when it should return true

As part of form validation, the password and password2 are compared. This is part of a simplified ajax request system for an extremely small site returning small amounts of data (so i don't use JSON). ...
2
votes
5answers
282 views

javascript function not getting called

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]; ...
2
votes
1answer
215 views

django: passing a url as a parameter

I want to pass a URL from javascript to a django view. I have the following urls.py --- urls.py --- url(r'^show/(?P<url>\.+)$', 'myapp.views.jsonProcess'), The view has the ...
0
votes
2answers
141 views

django+javascript - How to deal with data coming from different sources/functions?

I have a JavaScript map that takes some coordinates from a django view/function when the template page first loads up like this: <script type="text/javascript"> ... map.setCenter(new ...
3
votes
2answers
693 views

Django Show user that upload is in progress

I have a filemanager application that allows users to upload files to the server and ofcourse download them. Now in the state it is when an user starts uploading the browser only shows that small ...
0
votes
1answer
178 views

How do I get the same format for a javascript array and django set on the backend?

I have code that, when a user is logged in, selects recipes that apply to him based on the ingredients (items) he has previously identified identified as possessions. This code gets the id's of the ...
0
votes
1answer
688 views

json request and django response

Why dont i get a response from the server after sending the json request,what am i doinfg wrong $("#chat").submit(function(){ // If user clicks to send a message on a empty message box, ...
-1
votes
4answers
1k views

call javascript function from django

Can a javascript function be called from django HttpResponseredirect or some other django function
0
votes
3answers
2k views

passing a javascript array to a django view

I'm using django and have a page of search results that I want to be able to filter by category with ajax (jquery) requests. There's a filter bar on the side of the page and when someone selects ...

1 2
15 30 50 per page