diff options
author | Mart Raudsepp <leio@gentoo.org> | 2016-09-06 06:50:47 +0300 |
---|---|---|
committer | Mart Raudsepp <leio@gentoo.org> | 2016-09-06 06:52:35 +0300 |
commit | eb0340055871dc67b6d96287f6ec869bda674d2f (patch) | |
tree | 189b68032f90052e562d901f60225c8a1d47412f /backend | |
download | grumpy-eb0340055871dc67b6d96287f6ec869bda674d2f.tar.gz grumpy-eb0340055871dc67b6d96287f6ec869bda674d2f.tar.bz2 grumpy-eb0340055871dc67b6d96287f6ec869bda674d2f.zip |
Initial start of new Project Grumpy code; Hello World!
virtualenv -p python3 venv
venv/bin/activate
pip install -r requirements.txt
./manage.py runserver --help
./manage.py shell for a python shell with flask instance exported into "app" var
./manage.py runserver
Diffstat (limited to 'backend')
-rw-r--r-- | backend/__init__.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/backend/__init__.py b/backend/__init__.py new file mode 100644 index 0000000..81ca7eb --- /dev/null +++ b/backend/__init__.py @@ -0,0 +1,7 @@ +from flask import Flask + +app = Flask(__name__) + +@app.route("/") +def hello_world(): + return "Hello World!" |