[Answer]-Dajaxice installation walkthrough

1👍

I did exactly what the documentation says, and it worked fine (although I only really ever got the example problem working).

A few things I’ve noticed:

1) You shouldn’t have to import Dajax to get Dajaxice working (since the former sits on top of the latter).

2) I think your button onclick should be onclick="Dajaxice.exampleapp.sayhello(my_js_callback);"

3) You need to add urlpatterns += staticfiles_urlpatterns() to the bottom of your urls.py

I hope this helps!

0👍

I suppose you haven’t added appname in your project settings.py inside INSTALLED_APPS.
like this:

INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'dajaxice',
    'simple',
)

Leave a comment