Such tegs as <html>, <head>, <body>, <h1>, <h2>, <div>, <blockquote>, <p>, <ul>, <li>
were used. I have written some info about my skills, experience and eduacation.
Some style was applied. I have changed color, size, weight of the font, used GIF as background image and so on.
Using the teg <link>
: <link rel="stylesheet" href="../static/css/styles.css">
.
The easiest thing ever - installing via pip
.
I have used render_template
to serve my profile page at default (/
) route.
And this is the tree of the directories and files that I have got: . ├───static │ ├───css │ │ └───styles.css │ └───images │ └───space.gif ├───templates │ └───index.html ├───app.py └───README.md
I have used such functions as redirect
and url_for
to redirect default route to page '/profile'. This is how I have made it:
@app.route('/profile')
def index():
return render_template("index.html")
@app.route('/')
def redirect_to_profile():
return redirect(url_for('index'))