File tree Expand file tree Collapse file tree 6 files changed +31
-4
lines changed
Expand file tree Collapse file tree 6 files changed +31
-4
lines changed Original file line number Diff line number Diff line change 1+ option_settings:
2+ - namespace: aws:elasticbeanstalk:container:python:staticfiles
3+ option_name: /static/
4+ value: static/
Original file line number Diff line number Diff line change 11release /
2- * .pyc
2+ * .pyc
3+ .elasticbeanstalk /
Original file line number Diff line number Diff line change 88
99@application .route ('/' )
1010def hello_world ():
11- return "Hello world!"
11+ message = "Hello, world!"
12+ return flask .render_template ('index.html' , title = message )
1213
1314if __name__ == '__main__' :
14- application .run (host = '0.0.0.0' , debug = True )
15+ application .run (host = '0.0.0.0' , debug = True )
Original file line number Diff line number Diff line change 1- Flask == 0.10.1
1+ Flask == 0.10.1
2+ Jinja2 == 2.7
3+ Werkzeug == 0.9.1
4+ wsgiref == 0.1.2
Original file line number Diff line number Diff line change 1+ h1 {
2+ font-family : arial, helvetica;
3+ }
4+
5+ body {
6+ margin : 50px 0px ; padding : 0px ;
7+ text-align : center;
8+ }
Original file line number Diff line number Diff line change 1+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
2+ < html lang ="en ">
3+ < head >
4+ < title > {{ title }}</ title >
5+ < link href ="{{ url_for('static', filename= "css /style.css") }}" rel="stylesheet ">
6+ </ head >
7+ < body >
8+ < h1 > {{ title }}</ h1 >
9+ </ body >
10+ </ html >
You can’t perform that action at this time.
0 commit comments