https://github.com/reljicd/flask-tutorial
Flask tutorial
https://github.com/reljicd/flask-tutorial
flask jinja2 python sqlite3
Last synced: about 2 months ago
JSON representation
Flask tutorial
- Host: GitHub
- URL: https://github.com/reljicd/flask-tutorial
- Owner: reljicd
- Created: 2017-06-05T12:13:31.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-06-05T12:32:51.000Z (over 8 years ago)
- Last Synced: 2024-12-28T13:17:43.071Z (about 1 year ago)
- Topics: flask, jinja2, python, sqlite3
- Language: Python
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Flask Tutorial
Following Flask tutorial from [Flask website](http://flask.pocoo.org/docs/0.12/tutorial/)
## Virtual Environment
Make virtual environment in root of the project with:
```
python3 -m venv virtual-env
```
Activate it with:
```
source virtual-env/bin/activate
```
Install Requirements with:
```
(virtual-env) ~$ python -m pip install -r requirements.txt
(virtual-env) ~$ python -m pip install --editable .
```
## Database setup
You need to be in **mysite** folder for this command:
```
(virtual-env) ~$ python -m flask initdb
```
## The development web server
You need to be in **mysite** folder for this command:
```
(virtual-env) ~$ python -m flask run
```