Created the templates for the web pages which allows users to add a new record...

Created the templates for the web pages which allows users to add a new record of book and author to the database
parent d4488538
{% extends 'base.html' %}
{% load static %}
{% block title %}Add New Author{% endblock %}
{% block content %}
<form method="post">
{% csrf_token %}
{{form.as_p}}
<input type ="submit" value="Add Author">
</form>
{% endblock %}
{% extends 'base.html' %}
{% load static %}
{% block title %}Add New Book{% endblock %}
{% block content %}
<form method="post">
{% csrf_token %}
{{form.as_p}}
<input type ="submit" value="Add Book">
</form>
{% endblock %}
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