ytsm icon indicating copy to clipboard operation
ytsm copied to clipboard

Missing Static Files

Open Nixon506E opened this issue 6 years ago • 4 comments

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

Nixon506E avatar Dec 01 '18 20:12 Nixon506E

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 (set Debug=True in config.ini file) or insecure mode (add --insecure flag when running manage.py.

chibicitiberiu avatar Dec 03 '18 10:12 chibicitiberiu

I reread your message, I will investigate the issue when I get the chance.

chibicitiberiu avatar Dec 03 '18 10:12 chibicitiberiu

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.

Syco54645 avatar Jan 01 '19 19:01 Syco54645

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 .

chibicitiberiu avatar Jan 01 '19 19:01 chibicitiberiu