MCPcopy
hub / github.com/django/django / find

Method find

django/contrib/staticfiles/finders.py:183–197  ·  view source on GitHub ↗

Look for files in the app directories.

(self, path, find_all=False)

Source from the content-addressed store, hash-verified

181 yield path, storage
182
183 def find(self, path, find_all=False):
184 """
185 Look for files in the app directories.
186 """
187 matches = []
188 for app in self.apps:
189 app_location = self.storages[app].location
190 if app_location not in searched_locations:
191 searched_locations.append(app_location)
192 match = self.find_in_app(app, path)
193 if match:
194 if not find_all:
195 return match
196 matches.append(match)
197 return matches
198
199 def find_in_app(self, app, path):
200 """

Callers

nothing calls this directly

Calls 2

find_in_appMethod · 0.95
appendMethod · 0.45

Tested by

no test coverage detected