Fixing issues that cause problems with Django