Refactor the templates so the main HTML file extends a base one #4
|
@ -32,7 +32,7 @@ app = CalendarSocialApp(__name__)
|
||||||
|
|
||||||
@app.route('/')
|
@app.route('/')
|
||||||
def hello():
|
def hello():
|
||||||
return render_template('index.html')
|
return render_template('welcome.html')
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
{% extends 'base.html' %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
<p>Welcome to Calendar.social. There will be lot of content here soon!</p>
|
||||||
|
{% endblock content %}
|
Loading…
Reference in New Issue