>>> from django.contrib.staticfiles.finders import find
>>> find("img/logo.png", all=True)
[u'/sites/static_in_pro/our_static/img/logo.png']
>>> find("img/logo.png",)
u'/sites/static_in_pro/our_static/img/logo.png'
Information about various Linux / UNIX / OS X topics
No comments:
Post a Comment