Improve the code

1. Add django-braces, replace ugly login_required with LoginRequiredMixin
2. Update the package import order and remove the unused import
3. Improve the code style
Fix pep8 errors

With command: $ flake8 --exclude="migrations"
Format css file
Add app namespace
Merge branch 'feature/improve_old_code' into develop