Look for files in the extra locations as defined in STATICFILES_DIRS.
(self, path, find_all=False)
| 103 | return errors |
| 104 | |
| 105 | def find(self, path, find_all=False): |
| 106 | """ |
| 107 | Look for files in the extra locations as defined in STATICFILES_DIRS. |
| 108 | """ |
| 109 | matches = [] |
| 110 | for prefix, root in self.locations: |
| 111 | if root not in searched_locations: |
| 112 | searched_locations.append(root) |
| 113 | matched_path = self.find_location(root, path, prefix) |
| 114 | if matched_path: |
| 115 | if not find_all: |
| 116 | return matched_path |
| 117 | matches.append(matched_path) |
| 118 | return matches |
| 119 | |
| 120 | def find_location(self, root, path, prefix=None): |
| 121 | """ |