Skip to content

Commit

Permalink
edit html files
Browse files Browse the repository at this point in the history
  • Loading branch information
juyeonblue committed May 4, 2020
1 parent 9f64295 commit f4f84ed
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 1 deletion.
Binary file modified webproject_5_MTV/myproject/db.sqlite3
Binary file not shown.
Binary file modified webproject_5_MTV/myproject/myapp/__pycache__/views.cpython-37.pyc
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<h1> home </h1>
20 changes: 20 additions & 0 deletions webproject_5_MTV/myproject/myapp/templates/myapp/lions.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<body>
<div class = "header">
<h1>여기에 아기사자들 가져와</h1>
</div>

<div>
<a href = "{% url 'home' %}">뒤로가기</a>
</div>

{% for lion in lion_list %}

<div class = "lion">
<h1>{{lion.name}}</h1>
<p>가입 날짜 : {{ lion.create_date}}</p>
</div>

{% endfor %}

</body>

2 changes: 1 addition & 1 deletion webproject_5_MTV/myproject/myapp/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ def index(request):
def lion_list(request):
lion_list = Lion.objects.all()

return render(request, 'lions.html', {'lion_list' : lion_list})
return render(request, 'myapp/lions.html', {'lion_list' : lion_list})
Binary file not shown.
1 change: 1 addition & 0 deletions webproject_5_MTV/myproject/myproject/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@
urlpatterns = [
path('admin/', admin.site.urls),
path('',myapp.views.index, name = 'home'),
path('lions/', myapp.views.lion_list, name = 'lions'),
]

0 comments on commit f4f84ed

Please sign in to comment.