https://github.com/toxe/python-flask-website-example
Flask Website Example/Test
https://github.com/toxe/python-flask-website-example
flask python python3
Last synced: about 1 month ago
JSON representation
Flask Website Example/Test
- Host: GitHub
- URL: https://github.com/toxe/python-flask-website-example
- Owner: Toxe
- License: mit
- Created: 2020-05-16T12:48:04.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-16T12:48:52.000Z (about 6 years ago)
- Last Synced: 2025-03-22T17:47:26.012Z (about 1 year ago)
- Topics: flask, python, python3
- Language: Python
- Homepage:
- Size: 55.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Flask Website Example/Test
A simple Flask website example/test based mostly on [The Flask Mega-Tutorial](https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world) by Miguel Grinberg.
## Dependencies
- Python 3
- SQLAlchemy
- SQLite
- Flask
- Flask-WTF
- Flask-SQLAlchemy
- Flask-Migrate
- Flask-Login
- Flask-Mail
- Flask-Bootstrap
- Flask-Moment
- Flask-Babel
- Flask-HTTPAuth
- PyJWT
- python-dotenv
- pylint
- pylint-flask
- pylint-flask-sqlalchemy
- Click
- Requests
- guess_language-spirit
## Configuration
### Visual Studio Code
#### `.vscode/settings.json`
```json
{
"python.linting.pylintArgs": [
"--load-plugins",
"pylint-flask",
"pylint-flask-sqlalchemy"
]
}
```
## Import ships example data
```
sqlite3 app.db < ships.sql
```
## Running
```
flask run
```
## Translation
### Add a new language
For example add support for German (`de`):
```
flask translate init de
```
### Update all languages
```
flask translate update
```
### Compile translation files
```
flask translate compile
```