Go to file
FFX01 cef96c6e67 User not authenticated search fix
When a user is not logged in and attempts to access the login page with debug mode enabled, the file "base.html" throws an exception claiming that "search_form" is not an attribute of the global "g" object. It appears this was being caused by "search_form" only being defined for "g" if the user is authenticated. Moved attribute declaration out of if clause.
2015-07-16 00:07:49 -07:00
app User not authenticated search fix 2015-07-16 00:07:49 -07:00
db_repository python 3, pep8 and other various updates 2014-10-05 00:30:31 -07:00
tmp hello world 2012-12-16 21:41:25 -08:00
.gitignore babel integration 2013-01-31 23:23:52 -08:00
LICENSE hello world 2012-12-16 21:41:25 -08:00
Procfile python 3, pep8 and other various updates 2014-10-05 00:30:31 -07:00
README.md python 3, pep8 and other various updates 2014-10-05 00:30:31 -07:00
babel.cfg babel integration 2013-01-31 23:23:52 -08:00
config.py python 3, pep8 and other various updates 2014-10-05 00:30:31 -07:00
db_create.py python 3, pep8 and other various updates 2014-10-05 00:30:31 -07:00
db_downgrade.py python 3, pep8 and other various updates 2014-10-05 00:30:31 -07:00
db_migrate.py python 3, pep8 and other various updates 2014-10-05 00:30:31 -07:00
db_upgrade.py python 3, pep8 and other various updates 2014-10-05 00:30:31 -07:00
killpython Linux hosting 2013-04-14 23:13:17 -07:00
profile.py python 3, pep8 and other various updates 2014-10-05 00:30:31 -07:00
requirements.txt python 3, pep8 and other various updates 2014-10-05 00:30:31 -07:00
run.py python 3, pep8 and other various updates 2014-10-05 00:30:31 -07:00
runp-mysql.fcgi python 3, pep8 and other various updates 2014-10-05 00:30:31 -07:00
runp-sqlite.fcgi python 3, pep8 and other various updates 2014-10-05 00:30:31 -07:00
runp.py unit testing framework 2012-12-16 21:41:48 -08:00
tests.py python 3, pep8 and other various updates 2014-10-05 00:30:31 -07:00
tr_compile.py python 3, pep8 and other various updates 2014-10-05 00:30:31 -07:00
tr_init.py python 3, pep8 and other various updates 2014-10-05 00:30:31 -07:00
tr_update.py python 3, pep8 and other various updates 2014-10-05 00:30:31 -07:00

README.md

microblog

A decently featured microblogging web application written in Python and Flask that I'm developing in my Flask Mega-Tutorial series that begins here.

Installation

The tutorial referenced above explains how to setup a virtual environment with all the required modules.

The sqlite database must also be created before the application can run, and the db_create.py script takes care of that. See the Database tutorial for the details.

Running

To run the application in the development web server just execute run.py with the Python interpreter from the flask virtual environment.