By checking pyflakes removed imports views,login and permission required,include as they were unused in urls.py