Better way to get Django version

Signed-off-by: Michal Čihař <michal@cihar.com>