sandiegopython / pythonsd-django

http://sandiegopython.org/
MIT License
7 stars 5 forks source link

Silence a dev-only Django staticfiles warning #146

Closed davidfischer closed 4 months ago

davidfischer commented 4 months ago

Django emits a warning when running tests if STATIC_ROOT doesn't exist. That directory is normally only created after running collectstatic. This would be a serious error in prod, but isn't a big deal in dev.

Regardless, it's easy to silence the warning by creating an empty directory.