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

DJANGO_DEBUG == True means no static files are downloaded #101

Open
truppelito opened this issue Sep 26, 2024 · 0 comments
Open

DJANGO_DEBUG == True means no static files are downloaded #101

truppelito opened this issue Sep 26, 2024 · 0 comments

Comments

@truppelito
Copy link

I'm installing wger on my home server and wanted to use HTTPS. As per the docs, I preemptively set DJANGO_DEBUG=True just in case I had issues. Then promptly spent 3 hours debugging why the static folder wasn't being populated. I'm using mapped volumes, but permissions seemed alright. Until I found out this in the entrypoint.sh:

if [[ "$DJANGO_DEBUG" == "False" ]];
then
    echo "Running in production mode, running collectstatic now"
    python3 manage.py collectstatic --no-input $clear
fi

I would like to leave a suggestion here to note this potential issue in the README. I'm also leaving this here in case anyone else stumbles upon this issue.

@truppelito truppelito changed the title DJANGO_DEBUG == True means no static files are downloaded? DJANGO_DEBUG == True means no static files are downloaded Sep 26, 2024
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

1 participant