Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to find dajaxice/dajaxice.core.js under Windows. #145

Open
bear0330 opened this issue Dec 12, 2014 · 0 comments
Open

Unable to find dajaxice/dajaxice.core.js under Windows. #145

bear0330 opened this issue Dec 12, 2014 · 0 comments

Comments

@bear0330
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant