changed settings.py and detail.html