Commit 847cc9bc authored by Jan Ericsson Ong Ang's avatar Jan Ericsson Ong Ang

edited the nickname aspect of templates & views.py

parent 47311e66
{% extends 'base.html' %} {% extends 'base.html' %}
{% block title %}My Favorite Authors{% endblock %} {% block title %}My Favorite Authors{% endblock %}
{% block header %}Jan's Favorite Authors:{% endblock %} {% block header %},{% nickname %}'s Favorite Authors:{% endblock %}
{% block content %} {% block content %}
{% for author in authors %} {% for author in authors %}
......
{% extends 'base.html' %} {% extends 'base.html' %}
{% block title %}My Favorite Books{% endblock %} {% block title %}My Favorite Books{% endblock %}
{% block header %}Jan's Favorite Books:{% endblock %} {% block header %}{% nickname %}'s Favorite Books:{% endblock %}
{% block content %} {% block content %}
{% for book in books %} {% for book in books %}
......
{% extends 'base.html' %} {% extends 'base.html' %}
{% block title %} My Favorite Books & Authors!{% endblock %} {% block title %} My Favorite Books & Authors!{% endblock %}
{% block header %}Welcome to Jan's Database of Favorite Books and Author's! {% endblock %} {% block header %}Welcome to {% nickname %}'s Database of Favorite Books and Author's! {% endblock %}
{% block content %} {% block content %}
<p> <p>
I love fiction novels that are able to tell a story really well. A book that is able to keep me interested throughout every page is what I love! I love fiction novels that are able to tell a story really well. A book that is able to keep me interested throughout every page is what I love!
......
...@@ -15,5 +15,4 @@ def new_view(request): ...@@ -15,5 +15,4 @@ def new_view(request):
class HomepageView(View): class HomepageView(View):
def get (request): return render(request, 'bookshelf/templates/home.html', {'nickname', 'Jan'} )
return render(request, 'bookshelf/') \ No newline at end of file
\ No newline at end of file
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