HUE-1489 [core] Upgrade django nose

- Update mako
- Update test cases
- Alter mako to work with Django