Getting staticfiles to find subdirectories?

20 views
Skip to first unread message

Roy Smith

unread,
Jan 14, 2021, 11:13:29 PM1/14/21
to django...@googlegroups.com
I'm running django 2.2.

My static directory has a subdirectory which I want to deploy, but as far as I can tell, staticfiles only finds files in the top-level static directory. is there any way to make it recurse and find everything below the static directory, and keep the same directory structure in the deployed static area?

Mike Dewhirst

unread,
Jan 14, 2021, 11:24:50 PM1/14/21
to django...@googlegroups.com
On 15/01/2021 3:12 pm, Roy Smith wrote:
> I'm running django 2.2.
>
> My static directory has a subdirectory which I want to deploy, but as far as I can tell, staticfiles only finds files in the top-level static directory. is there any way to make it recurse and find everything below the static directory, and keep the same directory structure in the deployed static area?

python manage.py collectstatic

>


--
Signed email is an absolute defence against phishing. This email has
been signed with my private key. If you import my public key you can
automatically decrypt my signature and be sure it came from me. Just
ask and I'll send it to you. Your email software can handle signing.


OpenPGP_signature
Reply all
Reply to author
Forward
0 new messages