2
votes
1answer
19 views

How to send django text and picture form by ajax

What I am trying to do is sending user's text with/wihtout picture and response them to a page without reload the page again. Django form: class PostForm(forms.ModelForm): text = ...
0
votes
2answers
44 views

Django: How to fetch data from a text file after every 60 seconds using JQuery?

There is a text file in which the data is being written after, say, every 10 seconds. I want to display the data in the text file to user after every 60 seconds. I know I should be using Jquery/Ajax ...
0
votes
1answer
32 views

django: Pass specific form data through JQuery

How to pass any specific form value for processing, through Jquery in Django? I want to pass the value of label 'machine' in my form to views.py by JQuery. Here is my code: template.py: <head> ...
1
vote
0answers
47 views

Django Rest Framework - PUT to (many=True) PrimaryKeyRelatedField()

http://django-rest-framework.org/api-guide/relations.html#primarykeyrelatedfield I am trying to write to a PrimaryKeyRelatedField() and, although a 200 status is returned, an empty value is being ...
0
votes
1answer
70 views

Reload entire page in Ajax on Django?

I am using ajax to go the function and check if the value already exist on the database or not. If the data already exist, I show the jQuery dialog which is working fine but if the value doesn't ...
2
votes
2answers
99 views

Django: Get database object value in template using Ajax

I want to fetch database object depending on user selection. I know one possible solution could be Ajax, but I don't know how to get about it. Here is the code: view.py: def automation(request): ...
1
vote
0answers
91 views

How to store username after first time facebook login (in database)?

I am creating a website having option to login using facebook,google etc(like stackoverflow.com it has an option to login as a google user etc). My question is how to manage the user accounts.(i ...
1
vote
0answers
54 views

django ajax query returning error 10053 - An established connection was aborted by the software in your host machine

I am running a local django server and doing a simple ajax post request but I keep on getting this error. I have seen the related questions on this on SO which point to APPEND_SLASH but that isn't my ...
0
votes
0answers
32 views

chang api data through jquery-ajax

I have tastitype/api resource : class PinResource(ModelResource): submitter = fields.ToOneField(UserResource, 'submitter', full=True) image = fields.ToOneField(ImageResource, 'image', ...
0
votes
0answers
21 views

Cancelling file ajax-fileupload

I have a project where users of my interfaces are going to upload csv files that may be very big. I implemented the file upload with ajax using FormData and this works fine. I use django 1.4 and I ...
1
vote
1answer
28 views

Cancel form file upload submission

I work on a file upload form with some additional data and want to have a cancel button. My site is running on Django. I submit the form over the normal way with a submit button without Ajax but I ...
0
votes
0answers
68 views

ajax get json not receive data from django

I use django 1.4 run on ubutu. I'm trying to use jquery/ajax to display data returned from a django method. my file views.py def json_page(request): to_json = { "key1" : "value1", ...
0
votes
0answers
65 views

Django API for login/logout with S3 site is not creating cookies

I'm working with a static webpage hosted on S3 and I'm using a Django as my api for session management. I have my JS code on S3 POSTing to django when users sign in to my web site but I'm not getting ...
0
votes
1answer
244 views

jQuery to Make Ajax Request with Django

I am trying to interact with the server using jQuery and Django, but I am receiving this in my Chrome console: POST http://127.0.0.1:8000/rate/ 500 (INTERNAL SERVER ERROR) jquery.min.js:6 ...
0
votes
0answers
136 views

Cannot get CORS to work with contenType - Django Rest Framework

I have been waisting the whole day on this stupid little issue! Im using the django rest framework for my api, and backbone.js in the front end. I cannot do any request to the server when adding the ...

1 2 3 4 5 13
15 30 50 per page