Expanded views.py