Git Product home page Git Product logo

Comments (4)

evansd avatar evansd commented on September 7, 2024 1

In case anyone stumbles across this issue in future, WhiteNoise v2.0 now supports serving files from AppDirectories by default when DEBUG=True.

from whitenoise.

evansd avatar evansd commented on September 7, 2024

It sounds like you might be trying to use WhiteNoise as a development server, which it isn't really designed to do. It only serves files in STATIC_ROOT, so you'll need to run collectstatic to copy in the files from your app directories. Generally speaking, I let runserver handle serving static assets in development.

If you let me know more details about the problem you were having I can try to give you more specific help though.

from whitenoise.

pykler avatar pykler commented on September 7, 2024

Generally true, but in practice, with heroku the common and easiest way to
run the dev server is using foreman, using gunicorn which runs the wsgi.py.
Indeed foreman can run manage.py server.

On Sun Nov 30 2014 at 8:28:15 AM David Evans [email protected]
wrote:

Closed #25 #25.


Reply to this email directly or view it on GitHub
#25 (comment).

from whitenoise.

akramnarejo avatar akramnarejo commented on September 7, 2024

In case anyone stumbles across this issue in future, WhiteNoise v2.0 now supports serving files from AppDirectories by default when DEBUG=True.

what if debug=False that's my issue facing now.

from whitenoise.

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.