Update footer

This commit is contained in:
Andros Fenollosa 2016-09-27 13:47:54 +02:00
parent 3067d0c118
commit a41328708a
5 changed files with 28 additions and 8 deletions

3
.gitignore vendored
View File

@ -1,2 +1,3 @@
src/ENV
src/database.sqlite
log.err
log.info

View File

@ -5,7 +5,7 @@ from markdown import markdown
from database import db, User, Note
app = Flask(__name__)
app.secret_key = 'secret'
def login_required(f):
# Decoration: check login in session
@ -170,9 +170,3 @@ def delete_note():
db.session.commit()
return redirect(url_for('dashboard', id=id))
# App
if __name__ == "__main__":
app.secret_key = 'secret'
app.debug = True
app.run()

BIN
src/database.sqlite Normal file

Binary file not shown.

View File

@ -18,5 +18,25 @@
{% endblock %}
</div>
</div>
<footer>
<p>&nbsp;</p>
<p class="text-center">
Author: Andros Fenollosa <a href="https://programadorwebvalencia.com">https://programadorwebvalencia.com</a>
</p>
<p class="text-center">
Source: <a href="http://github.com/tanrax/flask-note">http://github.com/tanrax/flask-note</a>
</p>
</footer>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-46470654-2', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>

5
src/wsgi.py Normal file
View File

@ -0,0 +1,5 @@
from app import app
if __name__ == "__main__":
app.secret_key = 'secret'
app.run()