diff --git a/snallygaster b/snallygaster index 13f3842..9a178f6 100755 --- a/snallygaster +++ b/snallygaster @@ -804,6 +804,19 @@ def test_mailman(url): pout("mailman", "%s %s" % (murl, ver)) +@INFO +def test_django_staticfiles_json(url): + furl = url + '/static/staticfiles.json' + data = fetcher(furl) + try: + parsed = json.loads(data) + except json.JSONDecodeError: + pass + else: + if isinstance(parsed, dict) and 'paths' in parsed: + pout('django_staticfiles_json', furl) + + @INFO def test_composer(url): for c in ['composer.json', 'composer.lock']: