Kaynağa Gözat

Added Quandl link to Api examples.

Marco Quezada 10 yıl önce
ebeveyn
işleme
121f3d3c24

+ 3 - 1
hackathon_starter/hackathon/templates/hackathon/api_examples.html

@@ -11,7 +11,9 @@
 			<div class="col-sm-4"><a href="http://127.0.0.1:8000/hackathon/linkedin/">LinkedIn Example</a></div>
 		-->
 		<div class="col-sm-4"><a href="http://127.0.0.1:8000/hackathon/twilio/">Twilio Example</a></div>
-		<div class="col-sm-4"><a href="{{instagram_url}}">Instagram Example</a></div>
+		<div class="col-sm-4"><a href="{{instagram_url}}">Instagram Example
+		</a></div>
+		<div class="col-sm-4"><a href="http://127.0.0.1:8000/hackathon/quandlstocks/">Quandl Example</a></div>
 
   	</div>
 

+ 7 - 7
hackathon_starter/hackathon/templates/hackathon/quandl.html

@@ -4,6 +4,7 @@
 	{% include 'hackathon/base.html' %}
 
     <h1 class="text-center"> Quandl Collection </h1>
+
     <h2 class="text-center"> Dow Jones Data </h2>
 	<div class="col-lg-12">
         <div class="table-responsive">
@@ -13,18 +14,17 @@
                 <th class="header"> Name <i class="icon-sort"></i></th>
                 <th class="header"> Description <i class="icon-sort"></i></th>
                 <th class="header"> Data <i class="icon-sort"></i></th>
-                <th class="header"> Code <i class="icon-sort"></i></th>
-                
+                <th class="header"> Code <i class="icon-sort"></i></th>  
                 </tr>
             </thead>
             <tbody>
 
-            {% for data in data.dowjones %}
+            {% for key in data.dowjones %}
                 <tr>
-                    <td>{{ data.name }}</td>
-                    <td>{{ data.description }}</td>
-                    <td>{{ data.data }}</td>
-                    <td>{{ data.code }}</td>
+                    <td>{{ key.name }}</td>
+                    <td>{{ key.description }}</td>
+                    <td>{{ key.data }}</td>
+                    <td>{{ key.code }}</td>
     	        </tr>
             {% endfor %}