Giter VIP home page Giter VIP logo

Comments (5)

gjelsas avatar gjelsas commented on August 23, 2024 1

So, my mistake was not giving proper instructions to the nginx reverse proxy docker container. I fixed that by adding


 location /static/ {
         alias /static/;
     }
 

to the corresponding vhost-config file and mounting a folder containing the static files to /static in that nginx proxy container.

Just a misconception on my behalf. Maybe it helps someone...

from django-survey.

gjelsas avatar gjelsas commented on August 23, 2024 1

No it didn't. Actually I extracted it from the container and copied it to the folder which gets mounted to the nginx-proxy container. I know, not a very clean approach, but does the job...

from django-survey.

Pierre-Sassoulas avatar Pierre-Sassoulas commented on August 23, 2024

It definitely sound like something to do with static files not accessible. Maybe not deployed properly with the command to collect them, or something to do with the server configuration not being able to access the directory. I was using apache myself, but nginx probably need some configuration too ?

By the way I never used this project inside a docker, if you can contribute the generic part of the one you did for #62 that would be much appreciated ! :)

from django-survey.

gjelsas avatar gjelsas commented on August 23, 2024

for the admin-css stuff I had to copy /usr/local/lib/python3.7/dist-packages/django/contrib/admin/static/ to that static folder mentioned above for the admin site...

from django-survey.

Pierre-Sassoulas avatar Pierre-Sassoulas commented on August 23, 2024

I owuld have thougth collectstatic would do that for you ? (https://docs.djangoproject.com/en/3.1/ref/contrib/staticfiles/#collectstatic)

from django-survey.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.