add link back to index

master
Jerrica Bobadilla 5 years ago
parent 363aae8535
commit 59a5ff95a3

@ -1,7 +1,8 @@
<!-- including the base.html as a boilerplate --> <!-- including the base.html as a boilerplate -->
{% extends 'contacts/base.html' %} {% block content %} {% extends 'contacts/base.html' %} {% block content %}
<!-- contact detail content --> <!-- contact detail content -->
<a href="{% url 'contact_list' %}">Go back to contacts</a>
<h2>{{ contact.name }} <a href="{% url 'contact_edit' pk=contact.pk %}"}>(edit)</a></h2> <h2>{{ contact.name }} <a href="{% url 'contact_edit' pk=contact.pk %}"}>(edit)</a></h2>
<h4>Age: {{ contact.age }}</h4> <h4>Age: {{ contact.age }}</h4>
<a href="{% url 'contact_delete' pk=contact.pk %}">Delete contact</a> <a href="{% url 'contact_delete' pk=contact.pk %}">Delete contact</a><br/>
{% endblock %} {% endblock %}

@ -1,5 +1,6 @@
<!-- tunr/templates/tunr/artist_form.html --> <!-- tunr/templates/tunr/artist_form.html -->
{% extends 'contacts/base.html' %} {% block content %} {% extends 'contacts/base.html' %} {% block content %}
<a href="{% url 'contact_list' %}">Go back to contacts</a>
<h2>New Contact</h2> <h2>New Contact</h2>
<form method="POST"> <form method="POST">
{% csrf_token %} {{ form.as_p }} {% csrf_token %} {{ form.as_p }}

@ -32,7 +32,7 @@ SECRET_KEY = os.environ['SECRET_KEY']
# SECURITY WARNING: don't run with debug turned on in production! # SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True DEBUG = True
ALLOWED_HOSTS = ['localhost', 'shielded-eyrie-36463.herokuapp.com'] ALLOWED_HOSTS = ['localhost']
# Application definition # Application definition

Loading…
Cancel
Save