Commit f0383042 authored by Deokhyun Lee's avatar Deokhyun Lee

templates for the landing page is finished

parent 62fee287
......@@ -32,6 +32,7 @@ ALLOWED_HOSTS = []
# Application definition
INSTALLED_APPS = [
'bookshelf',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
......
......@@ -2,7 +2,7 @@ from django.urls import path
from . import views
urlpatterns = [
path('home/', views.index, name = "home"),
path('books/', views.about, name = "books"),
path('authors/', views.about, name = "authors")
path('home/', views.home, name = "home"),
path('books/', views.books, name = "books"),
path('authors/', views.authors, name = "authors")
]
\ No newline at end of file
......@@ -6,5 +6,10 @@ from django.shortcuts import render
def home(request):
template = loader.get_template('bookshelf/index.html')
return HttpResponse(template.render(request))
context = {}
template = loader.get_template('home/index.html')
return HttpResponse(template.render(context, request))
def authors(request):
return
def books(request):
return
\ No newline at end of file
No preview for this file type
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