Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Static Files #40

Open
Nixon506E opened this issue Dec 1, 2018 · 4 comments
Open

Missing Static Files #40

Nixon506E opened this issue Dec 1, 2018 · 4 comments

Comments

@Nixon506E
Copy link

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

@chibicitiberiu
Copy link
Owner

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
Copy link
Owner

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

@Syco54645
Copy link

Syco54645 commented Jan 1, 2019

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.

@chibicitiberiu
Copy link
Owner

chibicitiberiu commented Jan 1, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants