Fix building static media for extensions.
Review Request #10610 — Created June 28, 2019 and submitted
When packaging extensions, we attempt to compile any static media files
for inclusion in the package. This fails on modern versions of Django,
as we weren't properly setting up the Django environment, leading to
confusing errors during building.
We now call
django.setup()on modern releases, fixing media
Successfully built extensions on Django 1.11.