Add resource for a community , view function + template + unittests

Fix flake8 errors