I recently migrated my Django project to a new server and ran collectstatic. Afterwards, I served my Django site on uWSGI.
On the main page HTML code:
body id="skin-blur-city"
In project/static/css/style.css
#skin-blur-city {
background-image: url(../img/body/city.jpg);
}
The static directory is under my project directory in the Django settings file:
STATIC_ROOT = os.path.join(BASE_DIR, "static/")
The style.css file is located in project/static/css/
The image file can be found in project/static/img/body/city.jpg
However, the main page does not display the city.jpg background. When inspecting the source code from the browser after opening the page, I see that the body id="skin-blur-city" is in the HTML code, but it is not showing in the browser.
The web console CSS output in the browser shows errors related to Firefox Quantum 60.10esr 64-bit update:
Keyframe rule ignored due to bad selector. animate.min.css:1:6679
...
Unknown property ‘user-select’. Declaration dropped. reps.css:270:15