Webinfo pro šifrovačky na Táboře mladých matematiků
-
Install the requirements:
py -m pip install -r requirements.txt
-
Rename
tmm_webinfo.example.yamltotmm_webinfo.yamland fill in the details (for debugging using a local SQLite database, remove thedbsection). -
Prepare the database:
py create_db.py
py -m flask --app tmm_webinfo --debug runThe PythonAnywhere free hosting can be used to deploy the app. They have a A beginner's guide to building a simple database-backed Flask website on PythonAnywhere which can serve as a reference for creating an account there and setting up the database. However, it is not a tutorial for deploying an existing project so instead of writing the code of the app according to the tutorial, this repository can be cloned (using a console) and the WSGI configuration file updated accordingly to set project_home and import from tmm_webinfo import app as application.