Skip to content

Commit

Permalink
feat(monolith): display date
Browse files Browse the repository at this point in the history
  • Loading branch information
Vampouille committed Dec 13, 2024
1 parent 90012d1 commit 98d807f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
*.swp
*~
backend/python/__pycache__/
3 changes: 2 additions & 1 deletion m03_developer/monolith/app.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
from flask import Flask, render_template
from datetime import datetime

app = Flask(__name__)

@app.route('/')
def home():
return render_template('index.html')
return render_template('index.html', current_time=datetime.now())

if __name__ == "__main__":
app.run(debug=True, host='0.0.0.0', port=5000)
1 change: 1 addition & 0 deletions m03_developer/monolith/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ <h1 class="greetings">The Horror Movies</h1>
<footer>
<div class="footer-content">
<p>&copy; 2024 Created with vim.</p>
<p>Generated at {{ current_time.strftime('%d/%m/%Y %H:%M:%S') }}</p>
<div class="social-media">
<a href="#">Facebook</a>
<a href="#">Twitter</a>
Expand Down

0 comments on commit 98d807f

Please sign in to comment.