DjangoGirls / tutorial

This is a tutorial we are using for Django Girls workshops
http://tutorial.djangogirls.org/
Other
1.53k stars 1.86k forks source link

ignore only top-level static/ dir, not every one #1701

Closed das-g closed 3 years ago

das-g commented 3 years ago

See https://github.com/DjangoGirls/tutorial/commit/be2f0b0f306dd82d79a6e6f0516a09cca90e560d#r45123764 (Thanks for pointing this out, @nikhiljohn10)

Changes in this pull request:

These non-toplevel directories are needed to store static files in the source tree, see Where to put static files for Django in our CSS chapter. The top-level folder corresponds to the STATIC_ROOT setting we set when setting up the Django project and its settings. It's filled with copies of the contents of the non-toplevel static files when python manage.py collectstatic is run by the user when re-deploying or probably by the pa_autoconfigure_django.py script during initial deployment. (IIRC, we never do that locally during the tutorial, but some participants might do so by mistake or after the tutorial by purpose, or they might make Git commits on the server side for some reason, so still keeping the top-level static/ dir ignored makes sense.)