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
2
votes
3 answers

CSRF verification failed. Request aborted. // Dajaxice, Ajax

I am using Daxice library to create AJAX calls in my Django app. When I create a POST method on a form I get the mentioned error: Forbidden (403) CSRF verification failed. Request aborted. My settings.py have: MIDDLEWARE_CLASSES = ( …
Diolor
  • 13,181
  • 30
  • 111
  • 179
2
votes
0 answers

error importing Dajaxice 'no module named "Dajaxice"'

I have followed this tutorial several times and double and triple-checked that I did it correctly: http://django-dajaxice.readthedocs.org/en/latest/installation.html I am using Windows and have installed Dajaxice. I can enter the Django api and…
sugarmuff
  • 435
  • 5
  • 17
2
votes
1 answer

How to import dajaxice?

I'm a nooby to django and I tried many hours to get a simple example of dajaxice running, but I don't seem to find the right way to look for the files. I did and redid installation and tried to find answers in the numerous similar questions on…
kmgrds
  • 131
  • 2
  • 13
2
votes
1 answer

Dajaxice with Class Based View

Is there a way to user dajaxice with django class based views? I'm trying this, but not having much success: class FavoriteEnroledTrainee(SessionMixin, View): def get(self, request, *args, **kwargs): print 'here' …
Filipe
  • 3,398
  • 5
  • 21
  • 35
2
votes
1 answer

using dajax, dajaxice in heroku

I'm using dajax / dajaxice. But when I upload my app to heroku, I found crash log 2012-12-04T08:32:36+00:00 heroku[web.1]: Starting process with command `python manage.py runserver 0.0.0.0:45991 --noreload` 2012-12-04T08:32:37+00:00 app[web.1]:…
JD Yang
  • 371
  • 2
  • 3
  • 16
2
votes
2 answers

Dajaxice: Having trouble getting Dajaxice working

I know, I know, the first thing you are thinking is to check all of the instructions online and on dajaxproject.com Well I have checked and checked and rerun this installation and I cannot figure out what the problem is. I assume it has something to…
John Zeller
  • 575
  • 2
  • 7
  • 22
2
votes
2 answers

dajax.core ImportError at /No module named

I've installed dajaxice by this tutorial: Copied folder "dajaxice" (from archive) to project folder. Added all changes to setting.py & urls.py Added next lines to template: {% load dajaxice_templatetags %} {% dajaxice_js_import %} Created ajax.py…
Skitalec
  • 21
  • 5
2
votes
1 answer

Why does Dajaxice and Dajax uses MEDIAL_URL?

In Dajaxice's installation documentation, it says to set DAJAXICE_MEDIA_PREFIX in settings.py. Later that value is retrieved in the urls.py. In Dajax's installation documentation (which is 2 years old), it says to load the static file like…
hobbes3
  • 28,078
  • 24
  • 87
  • 116
1
vote
1 answer

Django Dajax jQuery basic settings

Maybe it is so trivial but I simply can't get Dajax to work with jQuery. Everything works as expected with prototype but how to setup dajax to work with jquery? I'm use dajaxexamples and there is everything setup for prototype. in head:
Goran
  • 6,644
  • 11
  • 34
  • 54
1
vote
3 answers

dajaxice register functions

I'm using Django v1.2.3 and Dajaxice v0.2. My setup looks exactly like the one in the docs, but my function is not being registered. When I try to call this function it seems to be undefined and when I open the Dajaxice.core.js there is no…
1
vote
1 answer

Dajaxice network error 404: method not found

I'm trying to create a basic submit form (like the dajaxice's example) but i keep receiving a 404 error from firebug console: 404 NOT FOUND 386ms "NetworkError: 404 NOT FOUND - http:///dajaxice/maynard.maynard_core.subscribe/" My…
Samuele Mattiuzzo
  • 10,760
  • 5
  • 39
  • 63
1
vote
1 answer

django dajax css width attribute

I'm trying to modify the width css property of a div using dajax in django. I've tried every variation I can think of with no success. I am using dajax successfully for many other things, mostly for "innerHTML" manipulation. Here is an example of…
1
vote
1 answer

Refresh Popup Window

I am making a website using Django and I want a popup window that displays logging messages and will automatically refresh every N seconds. I am using the standard python logger, javascript, and Dajaxice for my popups. I am stuck on how to get…
kdubs
  • 936
  • 3
  • 22
  • 45
1
vote
1 answer

Dajax example doesnt work

So I'm trying to get the hang of Dajaxice for Django. Everything was fine till I used Dajaxice, but just I tried Dajax I gat trouble. I made a new project and inside it an example app. So then I made a button - Button 1 in a template which uses a…
MickJagger
  • 27
  • 4
1
vote
1 answer

Update GET request in Dajax

I am trying to make it possible to update search results with Dajax as you change the search parameters. I have a GET request for the word search, and would like to modify it using Dajax. I understand this query has to be in POST format, but how…
OriolAnd
  • 13
  • 1
  • 7