If you havent got a working database yet while testing, it manage.py crashes because the prometheus bit is trying to access the database tables before theyve been created
These lines at the bottom of /api/views.py
REGISTRY.register(MetricsCollector())
def metrics(request):
return HttpResponse(generate_latest())