Unable to find JS static files (fix)
ksurya opened this issue · 2 comments
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
@jorgebastida can you please comment on it
They're not static files but templates. The js is generated from the template with your decorated ajax functions.