The findstatic command
The staticfiles application also provides one more management command: findstatic
. This command allows you to enter the relative path to a static file (the same as what would be used inside a static
template tag) and Django will tell you where that file was located. It can also be used in verbose mode to output the directories it is searching through.
Note
You may not be familiar with the concept of verbosity, or verbose mode. Having a higher verbosity (or simply turning on verbose mode) will cause a command to generate more output. Many command-line applications can be executed with more or less verbosity. This can be helpful when you’re trying to debug programs you are using. To see an example of verbose mode in action, you can try running the Python shell in verbose mode. Enter python -v
(instead of just python
) and press Enter. Python will start in verbose mode, which prints out the path of every file it imports.
This command is mostly useful...