모범 답안

views.py
def fail(request):
return render(request, 'fail.html')
def help(request):
return render(request, 'help.html')
def warn(request):
return render(request, 'warn.html')
urls.py
# 상단 생
from facebook.views import fail, help, warn
urlpatterns = [
path('admin/', admin.site.urls),
path('play/', play),
path('play2/', play2),
path('dogeunchoi/profile/', my_profile),
path('event/', event),
path('fail/', fail),
path('help/', help),
path('warn/', warn),
]
fail.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>fail</title>
<style>
.container {
background-color: red;
color: #ffffff;
padding: 20px;
}
</style>
</head>
<body>
<div class="container">
비정상적인 접근입니다.
</div>
</body>
</html>
help.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>help</title>
<style>
.container {
background-color: blue;
color: #ffffff;
padding: 20px;
}
</style>
</head>
<body>
<div class="container">
무엇을 도와드릴까요?
</div>
</body>
</html>
warn.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>warn</title>
<style>
.container {
background-color: orange;
color: #ffffff;
padding: 20px;
}
</style>
</head>
<body>
<div class="container">
다시 확인해주세요.
</div>
</body>
</html>