ange
6 years ago
6 changed files with 72 additions and 7 deletions
@ -0,0 +1,20 @@ |
|||||
|
{% extends 'base.html' %} |
||||
|
|
||||
|
{% block main %} |
||||
|
<div class="container"> |
||||
|
|
||||
|
<h1 class="header">{{ author.author_name }}</h1> |
||||
|
|
||||
|
|
||||
|
<p>Book(s): {% for book in author.books %} |
||||
|
|
||||
|
<li> <a href="{{url_for('show_book_by_id', id=book.id)}}">{{ book.title }}</a> </li> |
||||
|
|
||||
|
{% endfor %}</p> |
||||
|
|
||||
|
<br> |
||||
|
<br> |
||||
|
<a href="{{ url_for('edit_author_by_id', id=author.id )}}">edit</a> |
||||
|
|
||||
|
</div> |
||||
|
{% endblock %} |
@ -1,3 +1,3 @@ |
|||||
#! /usr/bin/env python |
#! /usr/bin/env python |
||||
from app import app |
from app import app |
||||
app.run(debug=True,host="0.0.0.0",port=8080) |
app.run(debug=True,host="0.0.0.0",port=8000) |
||||
|
Loading…
Reference in new issue