Commit e93041db authored by Jan Ericsson Ong Ang's avatar Jan Ericsson Ong Ang

edited homeview in views.py

parent 748e1e05
...@@ -5,7 +5,8 @@ from .models import Author, Books ...@@ -5,7 +5,8 @@ from .models import Author, Books
# Create your views here. # Create your views here.
def HomeView(request): class HomeView:
def get(self, request):
return render(request, 'bookshelf/home.html', {'nickname': 'Jan'}) return render(request, 'bookshelf/home.html', {'nickname': 'Jan'})
class AuthorView(ListView): class AuthorView(ListView):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment