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.
Questions tagged [dajaxice]
111 questions
0
votes
2 answers
Get more information from django/python or server log
I'm trying to debug a "POST" request error but I do not have enough information. Thus I need help to figure out more.
I get the following error in my tail -a. This is the only thing it displays in tail and of inside the log itself. I assume that…

Diolor
- 13,181
- 30
- 111
- 179
0
votes
0 answers
dajaxice DajaxiceFinder fails collectstatic
I installed dajaxice into a django project. When i run the web using manage.py runserver, all went well. Now I try to deploy it with apache/wsgi. When I run manage.py collectstatic, error occur:
ImportError: cannot import name Bag
where Bag is one…

YeRuizhi
- 953
- 8
- 12
0
votes
1 answer
Dajax - get a simple value from a function usinf add_data: Uncaught ReferenceError client-side
I just want to return a simple value from an ajax function using dajax but it seems not so simple:
## python
@dajaxice_register
def get_selected_option_value(request, id):
"""
return my value
"""
dajax = Dajax()
try:
item…

Luke
- 1,794
- 10
- 43
- 70
0
votes
1 answer
Dajax Hello World
I can't seem to get a simple hello world response from Dajax, after all day of working on hello world. (I'm sure you'll realize that this is word for word from the hello world guide)
I have an apps folder Example: proj/apps/myapp
I have created…

moreisee
- 408
- 8
- 17
0
votes
1 answer
How to view error messages generated by dajaxice
I'm learning to use dajaxice, and I keep breaking things, but since only the ajax parts aren't working properly, the entire site doesn't break and generate error messages, so it's taking me forever to find my mistakes. Is there a way to track down…

skzryzg
- 1,020
- 8
- 25
0
votes
0 answers
how can I add ajax gif image while sending request to server and get response in django with dajaxice?
this is my template(profile.html):
here is my ajax.py :
from django.utils import simplejson
from dajaxice.decorators import…

mojibuntu
- 307
- 3
- 16
0
votes
2 answers
Where to create html? Server or client side?
I am using dajax for ajax in my django app.
After getting some data from database I create list of elements in my python ajax.py and assign it with dajax to inner html of some container. Like this:
@dajaxice_register
def…

Vladimir Nani
- 2,774
- 6
- 31
- 52
0
votes
0 answers
TemplateDoesNotExist: dajaxice/dajaxice.core.js - occurs when I run collectstatic
I have installed Dajax and Dajaxice - and have them running fine on my local environment. However, on my test server I get the following error now when I try to use manage.py collectstatic:
TemplateDoesNotExist: dajaxice/dajaxice.core.js
My…

tominwood
- 83
- 1
- 2
- 5
0
votes
1 answer
Passing view variables directly to dajaxice?
I was wondering if there is a way to pass view variables directly to dajaxice?
Actually I convert the id to a json string and load them via the dajaxice function.
I like to avoid passing the id this way and have to handle it as user manipulated…

Sven Rojek
- 5,476
- 2
- 35
- 57
0
votes
1 answer
How can I display range of objects using django pagination?
I am making an AJAX pagination template displaying a 5x5 Dota 2 player item backpack grid (see screenshot -- it is the one made by steam).
The thing is, a page can have empty slots.
The following code will not handle it. If the second slot is empty…

rxdazn
- 1,380
- 1
- 14
- 30
0
votes
1 answer
How to specify Synchronous request in Dajax or Dajaxice?
I need to set the equivalent 'async' setting of jQuery.ajax() in Dajax or Dajaxice requests to avoid continue the script execution before my Dajaxice callback ends.
$(".some_selector").click(
Dajaxice.apps.forum.forum_com(my_js_callback,…

ecdani
- 361
- 3
- 14
0
votes
1 answer
Maintain a persistent Serial connection that dajaxice calls can use?
I have a basic django setup running and am currently implementing dajaxice calls to write some data to the serial connection (a RainbowDuino is on the other end).
The following code works however when you establish a serial connection to the…

Gybe
- 329
- 1
- 4
- 10
0
votes
3 answers
How to get simple, Hello World Dajaxice interaction to work?
I'm trying to get Django to produce working Ajax interactions on my web page.
I have followed the instructions for django-dajaxice here: http://django-dajaxice.readthedocs.org/en/latest/quickstart.html and here:…

Saqib Ali
- 11,931
- 41
- 133
- 272
0
votes
1 answer
dajaxice collectstatic creating a temp file
I'm having a problem with Dajaxice and how it appears to create a custom javascript file to be used for ajax. When one runs manage.py collectstatic with Dajaxice installed, it creates a custom javascript file. This post references this issue as…

Leo Mizuhara
- 365
- 2
- 3
- 15
0
votes
1 answer
Dajaxice & Dajax DEBUG=False
How can I turn off Dajaxproject alert 'Something goes wrong' ? Sometimes my dajax functions returns empty data, hence variables in html are None. It does suit me however dajax alert is displayed. I have heard there is DAJAXICE_EXCEPTION but I do not…

user1403568
- 493
- 1
- 5
- 14