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 JS static files (fix) #105

Open
ksurya opened this issue May 13, 2013 · 2 comments
Open

Unable to find JS static files (fix) #105

ksurya opened this issue May 13, 2013 · 2 comments

Comments

@ksurya
Copy link

ksurya commented May 13, 2013

I have tried to use {% dajaxice_js_import %} to import JS files as in the directory ./dajaxice/templates/dajaxice/. The template tag is able to render the respective html element but not able to load the file!

This issue is raised many times on google-groups too

Django unable to find those static files

The possible fix:

rename the directory templates to static. So, the directory where these files will now be ./dajaxice/static/dajaxice/

Now when people run manage.py collectstatic they will pretty able to load all these static files into their project and thus the urls work

@ksurya
Copy link
Author

ksurya commented Jun 2, 2013

@jorgebastida can you please comment on it

@ghost
Copy link

ghost commented Sep 4, 2013

They're not static files but templates. The js is generated from the template with your decorated ajax functions.

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