├── author ├── __init__.py ├── decorators.py ├── models.py ├── form.py └── views.py ├── blog ├── __init__.py ├── form.py ├── models.py └── views.py ├── .gitignore ├── static └── bootstrap │ ├── fonts │ ├── glyphicons-halflings-regular.eot │ ├── glyphicons-halflings-regular.ttf │ ├── glyphicons-halflings-regular.woff │ └── glyphicons-halflings-regular.woff2 │ ├── js │ ├── npm.js │ ├── bootstrap.min.js │ └── bootstrap.js │ └── css │ ├── bootstrap-theme.min.css │ ├── bootstrap-theme.css │ └── bootstrap-theme.css.map ├── requirements.txt ├── templates ├── _flashmessages.html ├── _formhelpers.html ├── author │ ├── login.html │ └── register.html ├── blog │ ├── article.html │ ├── setup.html │ ├── post.html │ ├── index.html │ └── admin.html └── base.html ├── README.md ├── settings.py ├── dbinit.py ├── __init__.py ├── manage.py └── tests.py /author/__init__.py: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /blog/__init__.py: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | *.pyc 3 | *.swp 4 | *# 5 | .metadata 6 | .DS_Store 7 | *.log 8 | venv 9 | migrations 10 | static/images/* -------------------------------------------------------------------------------- /static/bootstrap/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cogentii/flask_blog_c9/HEAD/static/bootstrap/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /static/bootstrap/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cogentii/flask_blog_c9/HEAD/static/bootstrap/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /static/bootstrap/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cogentii/flask_blog_c9/HEAD/static/bootstrap/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /static/bootstrap/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cogentii/flask_blog_c9/HEAD/static/bootstrap/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | Flask==0.10.1 2 | PyMySQL==0.6.7 3 | Flask-SQLAlchemy==2.1 4 | Flask-Script==2.0.5 5 | Flask-WTF==0.12 6 | Flask-Migrate==1.6.0 7 | py-bcrypt==0.4 8 | python-slugify==1.1.4 9 | Flask-Markdown==0.3 10 | Flask-Uploads==0.2.0 11 | -------------------------------------------------------------------------------- /templates/_flashmessages.html: -------------------------------------------------------------------------------- 1 | {% with messages = get_flashed_messages() %} 2 | {% if messages %} 3 |
16 | Welcome, {{ session['username'] }} - logout 17 |
18 | 19 | 20 | 23 | 24 | 25 |