Create views.py

Index and detail pages