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