ytsm
ytsm copied to clipboard
Missing Static Files
I cannot get the static files to properly show under the current docker settings. I think we need to add a STATICFILES_DIRS parameter to the django settings file. See: https://docs.djangoproject.com/en/1.9/ref/settings/#std:setting-STATICFILES_DIRS and a related post with a possible easy solution here: https://stackoverflow.com/questions/38627393/docker-django-404-for-web-static-files-but-fine-for-admin-static-files
Hello, I encountered this issue before. Basically, 2 ways to solve:
- if you are using a web server (nginx or apache), map the
app/YtManagerApp/static
directory to the path/static/
from the server's configuration (this is how the provided Docker compose is built). - run django either in
debug
mode (setDebug=True
inconfig.ini
file) orinsecure
mode (add--insecure
flag when running manage.py.
I reread your message, I will investigate the issue when I get the chance.
I am also having this issue. I am attempting to run in Unraid using the docker located at https://hub.docker.com/r/chibicitiberiu/ytsm. I created a symlink to make the /static directory exist and contain the needed files however django still cannot see them.
In the docker compose, I map /static url to directory app/YtManagerApp/static using nginx. I wrote about thid issue in the wiki (troubleshooting page). Let me know if that works.
On Tue, Jan 1, 2019, 21:25 Frank Claycomb <[email protected] wrote:
I am also having this issue. I created a symlink to make the /static directory exist and contain the needed files however django still cannot see them.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/chibicitiberiu/ytsm/issues/40#issuecomment-450751512, or mute the thread https://github.com/notifications/unsubscribe-auth/AE8dkSoAmDXwO7y8jMGtRSortIf1Pb8Wks5u-7YtgaJpZM4Y9FEj .