Questions tagged [dajaxice]

dajaxice is a JS-framework agnostic that focuses on decoupling the presentation logic from the server-side logic. Its main goal is to trivialize the asynchronous communication between the django server side code and your js code.

111 questions
0
votes
3 answers

Dajax not working

Dajax is not working, I am not able to understand why. I am using Django 1.7 My ajax.py file looks this: from dajax.core import Dajax from dajaxice.decorators import dajaxice_register @dajaxice_register def jmc_foundation_tower_number(request,…
Sourabh Dev
  • 743
  • 11
  • 22
0
votes
0 answers

can't make dajax example make work - FunctionNotCallableError

I installed dajaxice and dajax as docs mentioned. I tried dajaxice and it's alert() example and it worked. Then I tried dajax. I would like to make multiply example work on my website. Pokervalue is project name and tournament is app name. Install…
Lucas03
  • 2,267
  • 2
  • 32
  • 60
0
votes
1 answer

Dajaxice randomly stops working

So i have a Django project where I'm using Dajax and Dajaxice. The project runs well (being served locally using python manage.py runserver) but when I started it up again the next day (with no changes made to any files). The Dajaxice just stopped…
Abhinav Nair
  • 116
  • 10
0
votes
0 answers

dynamic dropdown menu in django using Dajax

I am trying to implement the simple dropdown menu in django using dajax module. But i am getting an error TypeError at /choice/dj updatecombo() takes exactly 2 arguments (1 given) Request Method: GET Request URL: …
Wagh
  • 4,202
  • 5
  • 39
  • 62
0
votes
1 answer

404 when call Dajaxice function cause of WSGI Alias

I have comboboxes into a form that refresh dynamically with Dajaxice, I have no problems in development for do this but in production with WSGI I have the follow problem: VirtualHost for project has an alias WSGIScriptAlias /dgp /path/to/wsgi for…
Enot
  • 790
  • 2
  • 15
  • 34
0
votes
1 answer

using dajaxice and editlive apps in django

So I am pretty new to Django and I am a little confused on how to install apps. I am trying to get the editlive app to work in Django. This requires dajaxice to also be installed. Both of the instructions for this are very similar, basically it says…
mingle
  • 580
  • 2
  • 6
  • 24
0
votes
0 answers

Dajaxice callback function called twice

I'm using django-dajaxice-ng package (django-dajaxice fork for Django 1.5 and above, since I use Django 1.5.4), and I have this strange issue. Sometimes the callback function is called twice or even more. Simple usage: ... {% load…
tonjo
  • 1,394
  • 1
  • 14
  • 27
0
votes
1 answer

how to trigger dajaxice.core.js to be updated with ajax.py

I am using django-dajaxice, and after I tried the example, the file of dajaxice/dajaxice.core.js has loaded some functions from myapp/ajax.py But the strange part is that, if I update this ajax.py in myapp folder, the js file is not updated with it,…
TonyTony
  • 1,344
  • 15
  • 23
0
votes
1 answer

How to Connect JQuery-UI Autocomplete Widget to Django-Dajax?

I have a Django app for which I am trying to build an autocomplete UI for making selections. As the user types into a text box and the the app should make search suggestions based on values retrieved from the database. I want to use Dajax/Dajaxice…
Roland
  • 103
  • 1
  • 1
  • 7
0
votes
1 answer

Why doesn't python Dajaxice function recognize when HTML sends argument(s)?

This works: Javascript: function my_js_callback(data) {alert("Response = " + data.response);} HTML: Python: @dajaxice_register() def…
Saqib Ali
  • 11,931
  • 41
  • 133
  • 272
0
votes
1 answer

How to run jQuery to disable onclick before calling Dajaxice? Current solution is ugly

I am trying to block the use of a button while Dajaxice/Dajax is processing. I need to guarantee that a second Dajaxice onclick call isn't made if it happens to take a long time before the Dajax to complete. I've checked the Dajax/Dajaxice…
ChrisFreeman
  • 5,831
  • 4
  • 20
  • 32
0
votes
1 answer

Dajaxice running locally, but django settings problems to make it work online

I have created a Django account which uses Dajaxice and Dajax. I run my website in an azure VM. When I run it with localhost Dajaxice/Dajax work perfectly. However, online this does not work anymore. I have some configurations problems in my…
0
votes
1 answer

Dajaxice calls itself and causes an error

Tried to get on with Dajaxice, set simple project and then got this: No module named 'Dajaxice' Traceback highlights 2 cases below: C:\study\django\dajax_geton\dajax_geton\urls.py in from dajaxice.core import dajaxice_autodiscover,…
Sykes
  • 9
  • 1
  • 3
0
votes
1 answer

Why do I get [object XMLHttpRequest] when using Dajaxice in Django?

HI I am creating an app in Django. I am currently using to Dajaxice in order to render a random CODE. I cannot access my python function when I try pass some variables to it. Independently of what I do, I get as a result [object…
0
votes
1 answer

The most simple example of Dajaxice with Django not working

I have problem with the most simple example of Dajaxice. I followed the installation guide in their official http://django-dajaxice.readthedocs.org/en/latest/installation.html and the example shown here…
valkirilov
  • 1,823
  • 3
  • 20
  • 26