How do I build this ignore pattern for collectstatic?

39 views
Skip to first unread message

voger

unread,
Aug 17, 2016, 7:05:39 AM8/17/16
to django...@googlegroups.com
Let's say somewhere inside my /static/ folder I have this tree

$ tree -L 2 -F --dirsfirst
.
├── qooxdoo -> ../../../qooxdoo//
└── qssite/
├── build/
├── source/
├── apache2.conf
├── config.json
├── config.json_orig
├── config.json_test
├── decode-source-uris.js
├── generate.py*
├── Gruntfile.js
├── Manifest.json
├── package.json
├── README.md
└── readme.txt

and let's say that I don't want collectstatic to collect anything except
the folder qssite/build/

Is there any pattern I can use or should I list explicitly everything I
want to be excluded?

Also what kind of patterns does it expect? Is it regular expression or
something else?

voger

unread,
Aug 17, 2016, 8:25:27 AM8/17/16
to django...@googlegroups.com
As to what kind of pattern it expects I found it. It expects glob style
patterns like the shell prompt. Not much matching to be done here.


Still I am curious if there is any clever way to achieve this with
pattern matching.
Reply all
Reply to author
Forward
0 new messages