diff --git a/snallygaster b/snallygaster index bc136cc..bbb22a9 100755 --- a/snallygaster +++ b/snallygaster @@ -908,6 +908,19 @@ def test_mailman(url): pout("mailman", f"{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']: