Fixed #22254 -- Noted the requirement of calling django.setup() when running

Thanks Peter Landry for the report.