collectstatic - JWalshe86/career GitHub Wiki
Understanding this projects collectstatic
General
The collectstatic command collects all the static files e.g. css, javascript and images from each application and any static file directories in this project. These files are then put in the one location, to make it easier to serve them in a production environment.
Specific to this project
In settings.py
- The
STATIC_URL
defines the base URL where the static files will be served from. So in this project since theSTATIC_URL = '/static/'
, static files are accessed via URLs likehttps://johnsite.ie/static/..