Update views.py

Added an optionnal MAX_NUMBER_OF_RESULTS settings and import settings from django.conf