Commit 62fee287 authored by Deokhyun Lee's avatar Deokhyun Lee

landing page is done with rl and template

parent ac790f6b
{% extends 'base.html'%}
{% block content %}
<p>Welcome!</p>
{% endblock %}
\ No newline at end of file
...@@ -2,6 +2,7 @@ from django.urls import path ...@@ -2,6 +2,7 @@ from django.urls import path
from . import views from . import views
urlpatterns = [ urlpatterns = [
path('home/', views.index, name = "index"), path('home/', views.index, name = "home"),
path('books/', views.about, name = "about") path('books/', views.about, name = "books"),
path('authors/', views.about, name = "authors")
] ]
\ No newline at end of file
from django.http import HttpResponse
from .models import Author, Books
from datetime import date
from django.template import loader
from django.shortcuts import render from django.shortcuts import render
# Create your views here.
def home(request):
template = loader.get_template('bookshelf/index.html')
return HttpResponse(template.render(request))
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