From 59a5ff95a3da346f1d1ccde0531b8888587cb264 Mon Sep 17 00:00:00 2001 From: Jerrica Bobadilla Date: Thu, 8 Oct 2020 11:41:38 -0700 Subject: [PATCH] add link back to index --- contacts/templates/contacts/contact_detail.html | 3 ++- contacts/templates/contacts/contact_form.html | 1 + django_contacts/settings.py | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/contacts/templates/contacts/contact_detail.html b/contacts/templates/contacts/contact_detail.html index 68a1ea3..d2f9d58 100644 --- a/contacts/templates/contacts/contact_detail.html +++ b/contacts/templates/contacts/contact_detail.html @@ -1,7 +1,8 @@ {% extends 'contacts/base.html' %} {% block content %} +Go back to contacts

{{ contact.name }} (edit)

Age: {{ contact.age }}

-Delete contact +Delete contact
{% endblock %} \ No newline at end of file diff --git a/contacts/templates/contacts/contact_form.html b/contacts/templates/contacts/contact_form.html index 01c37c6..3e2eb9c 100644 --- a/contacts/templates/contacts/contact_form.html +++ b/contacts/templates/contacts/contact_form.html @@ -1,5 +1,6 @@ {% extends 'contacts/base.html' %} {% block content %} +Go back to contacts

New Contact

{% csrf_token %} {{ form.as_p }} diff --git a/django_contacts/settings.py b/django_contacts/settings.py index 14d30c2..83f7949 100644 --- a/django_contacts/settings.py +++ b/django_contacts/settings.py @@ -32,7 +32,7 @@ SECRET_KEY = os.environ['SECRET_KEY'] # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True -ALLOWED_HOSTS = ['localhost', 'shielded-eyrie-36463.herokuapp.com'] +ALLOWED_HOSTS = ['localhost'] # Application definition