Browse Source

HIT PAUSE BUTTON: WAITING FOR SUBDOMAINS

david 5 years ago
parent
commit
f243dd96dd
2 changed files with 12 additions and 3 deletions
  1. 11 2
      lists/templates/base.html
  2. 1 1
      lists/tests.py

+ 11 - 2
lists/templates/base.html

@@ -1,5 +1,6 @@
 <!DOCTYPE html>
 <html lang="en">
+<!-- id='test' to test something! -->
 
   <head>
     <meta charset="utf-8">
@@ -14,9 +15,9 @@
     <div class="container">
 
       <div class="row">
-        <div class="col-md-6 col-md-offset-3 jumbotron">
+        <div class="col-md-6 col-md-offset-3 jumbotron" id='id_top_banner'>
           <div class="text-center">
-            <h1>{% block header_text %}{% endblock %}</h1>
+            <a id='main_text' href="http://localhost:8000/">{% block header_text %}{% endblock %}</a>
             <form method="POST" action="{% block form_action %}{% endblock %}">
               <input name="item_text" id="id_new_item"
                 class="form-control input-lg"
@@ -34,6 +35,14 @@
         </div>
       </div>
 
+      <div class="row">
+        <div class="col-md-6 col-md-offset-3">
+          <div class="text-center">
+            <h4><a href="http://localhost:8000/lists/3/">todo.beanzilla.net/lists/3/</a></h4>
+            <p>By: Beanzilla</p>
+          </div>
+      </div>
+
     </div>
   </body>
 </html>

+ 1 - 1
lists/tests.py

@@ -17,7 +17,7 @@ class HomePageTest(TestCase):
 
         # The Manual Way of doing it:
         html = response.content.decode('utf8')  
-        self.assertTrue(html.startswith('<html>'))
+        self.assertTrue(html.startswith('<html>')) #Oops, Django Templating Used not HTML!
         self.assertIn('<title>To-Do lists</title>', html)
         self.assertTrue(html.strip().endswith('</html>'))