File tree Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change
1
+ * .pyc
2
+ * ~
Original file line number Diff line number Diff line change 1
- from flask import Flask
2
- from flask import request
3
- from flask import render_template
1
+ from flask import Flask , request , render_template
2
+ import string
4
3
import requests
5
4
from bs4 import BeautifulSoup
6
5
9
8
@app .route ("/" )
10
9
def hello ():
11
10
return render_template ('home.html' ,
12
- section = "Prototype - Inicio" )
11
+ section = "Prototype - Inicio" ,
12
+ string = string )
13
13
14
14
15
15
@app .route ('/serie/list/<letter>' )
Original file line number Diff line number Diff line change 6
6
7
7
{% block content %}
8
8
< h1 > {{ section }}</ h1 >
9
+
10
+ < ul >
11
+ {% for l in string.lowercase %}
12
+ < li > < a href ="/serie/list/{{ l }} "> Letra {{ l }}</ a > </ li >
13
+ {% endfor %}
14
+ </ ul >
9
15
{% endblock %}
You can’t perform that action at this time.
0 commit comments