CodeForAfrica / CodeForAfrica/HURUmap
[BUG] Missing javascript files error with WhiteNoise
- Dominant language
- HTML
- Stars
- 8
- Forks
- 7
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
While using WhiteNoise in a django app, I get a value error on profile page that breaks my site.
`ValueError: The file 'js/affix.js' could not be found with .`
`profile_detail.html` has scripts that source from missing java-script files
```
{% block profile_javascript_libs %}
{{ block.super }}
{% endblock %}
```
Contributor guide
Research direction
Start with profile_detail.html and inspect the references to js/affix.js and js/profiles.js that trigger the WhiteNoise static-file error. Determine why those files are missing or incorrectly referenced, then verify that the profile page loads without the missing-files ValueError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- django, javascript, python
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100