add author has been created

parent 7c7800c1
......@@ -2,9 +2,10 @@
{% load static %}
{% block title %} Add New Author {% endblock %}
{% block content %}
<h1>Add New Author</h1>
<form action="" method="post">
{% csrf token %}
{% csrf_token %}
{{ form }}
<input type="submit" value="Submit">
<input type="submit" value="Add Author">
</form>
{% endblock %}
\ No newline at end of file
......@@ -12,4 +12,5 @@
</p>
<br>
<p><a href="http://127.0.0.1:8000/bookshelf/books">Books</a> <a href="http://127.0.0.1:8000/bookshelf/authors">Authors</a> </p>
<p><a href="http://127.0.0.1:8000/bookshelf/authors/add/">Add Author</a></p>
{% endblock %}
\ No newline at end of file
......@@ -12,7 +12,7 @@ urlpatterns = [
path('books/<int:pk>/details/', BooksDetailView.as_view(), name='books-detail'),
path('authors', AuthorsListView.as_view(), name='authors-list'),
path('authors/<pk>/details/', AuthorsDetailView.as_view(), name='authors-detail'),
path('authors/add/', AuthorsCreateView, name='authors-add'),
path('authors/add/', AuthorsCreateView.as_view(), name='authors-add'),
path('authors/<pk>/edit/', AuthorsUpdateView, name='authors-edit')
]
......
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