【问题标题】:The most simple example of Dajaxice with Django not workingDjango 不工作的 Dajaxice 最简单示例
【发布时间】:2013-11-14 05:10:04
【问题描述】:

我对 Dajaxice 最简单的例子有疑问。我按照他们官方http://django-dajaxice.readthedocs.org/en/latest/installation.html 中的安装指南和此处显示的示例http://django-dajaxice.readthedocs.org/en/latest/quickstart.html 或Github repo 中的相同https://github.com/jorgebastida/django-dajaxice/tree/master/examples

当我完成所有操作并单击按钮时,什么也没有发生,并且在 JavaScript 控制台中出现函数未定义的错误。我读了很多关于这个问题的书,但仍然没有解决方案。这就是我所拥有的。如果有人可以帮忙:(

这是我的项目的一个 repo,与示例相同: https://github.com/valkirilov/dajacice-example

【问题讨论】:

标签: python ajax django dajaxice dajax


【解决方案1】:

添加'dajaxice.finders.DajaxiceFinder',

STATICFILES_FINDERS = (
    'django.contrib.staticfiles.finders.FileSystemFinder',
    'django.contrib.staticfiles.finders.AppDirectoriesFinder',
#    'django.contrib.staticfiles.finders.DefaultStorageFinder',
)

【讨论】:

  • 在setting.py的底部添加。情况也是一样,Dajaxice 找不到我的函数
猜你喜欢
  • 2014-07-12
  • 1970-01-01
  • 2013-02-01
  • 2021-03-16
  • 1970-01-01
  • 2013-08-06
  • 2011-11-01
  • 2013-05-16
  • 2013-05-24
相关资源
最近更新 更多