Groups
Groups
Sign in
Groups
Groups
Django users
Conversations
About
Send feedback
Help
How do I build this ignore pattern for collectstatic?
39 views
Skip to first unread message
voger
unread,
Aug 17, 2016, 7:05:39 AM
8/17/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 AM
8/17/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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