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

created template folders and base.html

parent f02fe3b8
from django.shortcuts import render
from django.http import HttpResponse from django.http import HttpResponse
from .models import Author, Books from .models import Author, Books
from django.views import View
# Create your views here. # Create your views here.
def bookshelfIndex(request): def bookshelfIndex(request):
title = 'Landing Page Stuff<br><br>' title = 'Landing Page Stuff<br><br>'
output_view = "" + Author + " wrote " + Books + "!" output_view = "" + Author + " wrote " + Books + "!"
return HttpResponse(title + output_view) return HttpResponse(title + output_view)
def new_view(request):
spotlightBook = Books.objects.all()
class HomepageView(View):
def get (request):
return render(request, 'bookshelf/')
\ No newline at end of file
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