Allow Django apps to preview properly

The workarounds are a bit funky, but this seems the least worst
option.