Python TemplateDoesNotExist:dajaxice/dajaxice.core.js-在运行collectstatic时发生
我已经安装了Dajax和Dajaxice,并且在本地环境中运行良好。但是,在我的测试服务器上,当我尝试使用manage.py collectstatic时,出现以下错误: TemplateDoesNotExist:dajaxice/dajaxice.core.js My settings.py文件包含以下内容:Python TemplateDoesNotExist:dajaxice/dajaxice.core.js-在运行collectstatic时发生,python,django,dajaxice,dajax,Python,Django,Dajaxice,Dajax,我已经安装了Dajax和Dajaxice,并且在本地环境中运行良好。但是,在我的测试服务器上,当我尝试使用manage.py collectstatic时,出现以下错误: TemplateDoesNotExist:dajaxice/dajaxice.core.js My settings.py文件包含以下内容: STATICFILES_FINDERS = ( 'django.contrib.staticfiles.finders.FileSystemFinder', 'django.contri
STATICFILES_FINDERS = (
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
'dajaxice.finders.DajaxiceFinder',
# 'django.contrib.staticfiles.finders.DefaultStorageFinder',
)
INSTALLED_APPS = (
...
'dajaxice',
'dajax',
)
DAJAXICE_MEDIA_PREFIX = "dajaxice"
dajaxice_autodiscover()
urlpatterns = patterns('', url(dajaxice_config.dajaxice_url, include('dajaxice.urls')),)
My urls.py文件包含以下内容:
STATICFILES_FINDERS = (
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
'dajaxice.finders.DajaxiceFinder',
# 'django.contrib.staticfiles.finders.DefaultStorageFinder',
)
INSTALLED_APPS = (
...
'dajaxice',
'dajax',
)
DAJAXICE_MEDIA_PREFIX = "dajaxice"
dajaxice_autodiscover()
urlpatterns = patterns('', url(dajaxice_config.dajaxice_url, include('dajaxice.urls')),)
你知道为什么会发生这种情况吗?或者我该如何阻止它发生
提前谢谢
Tom你的url模式对梅雷利来说似乎不正确?你能告诉我可能是什么问题吗?