Fix reference to settings in views.py