restored files and corrected views.py