You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Django-dajaxice depends on staticfiles_storage to find the file path of dajaxice/dajaxice.core.js, it will call DajaxiceFinder -> DajaxiceStorage.exists with name: dajaxice/dajaxice.core.js. The implementation of DajaxiceStorage.exists is:
def exists(self, name):
return name in self.files
but the DajaxiceStorage.files is defined as files = {os.path.join('dajaxice', 'dajaxice.core.js'): 'dajaxice_core_js'}, under the Windows, this would be 'dajaxice\\dajaxice.core.js' not 'dajaxice/dajaxice.core.js', so the exists always returning False.
DajaxiceStorage.files should be simply defined as files = {'dajaxice/dajaxice.core.js': 'dajaxice_core_js'}, then it works under Windows.
The text was updated successfully, but these errors were encountered:
Django-dajaxice depends on staticfiles_storage to find the file path of dajaxice/dajaxice.core.js, it will call DajaxiceFinder -> DajaxiceStorage.exists with name: dajaxice/dajaxice.core.js. The implementation of DajaxiceStorage.exists is:
but the DajaxiceStorage.files is defined as
files = {os.path.join('dajaxice', 'dajaxice.core.js'): 'dajaxice_core_js'}
, under the Windows, this would be'dajaxice\\dajaxice.core.js'
not 'dajaxice/dajaxice.core.js', so the exists always returning False.DajaxiceStorage.files should be simply defined as
files = {'dajaxice/dajaxice.core.js': 'dajaxice_core_js'}
, then it works under Windows.The text was updated successfully, but these errors were encountered: