Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c43b0d7

Browse files
Minor style fixes; Implement Gunicorn; Dependency updates.
1 parent 4412099 commit c43b0d7

File tree

20 files changed

+488
-281
lines changed

20 files changed

+488
-281
lines changed

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Flask Blueprint Tutorial
22

3-
![Python](https://img.shields.io/badge/Python-v3.10-blue.svg?logo=python&longCache=true&logoColor=white&colorB=5e81ac&style=flat-square&colorA=4c566a)
4-
![Flask](https://img.shields.io/badge/Flask-v3.0.0-blue.svg?longCache=true&logo=flask&style=flat-square&logoColor=white&colorB=5e81ac&colorA=4c566a)
3+
![Python](https://img.shields.io/badge/Python-v3.12-blue.svg?logo=python&longCache=true&logoColor=white&colorB=5e81ac&style=flat-square&colorA=4c566a)
4+
![Flask](https://img.shields.io/badge/Flask-v3.1.2-blue.svg?longCache=true&logo=flask&style=flat-square&logoColor=white&colorB=5e81ac&colorA=4c566a)
55
![Flask-Assets](https://img.shields.io/badge/Flask--Assets-v2.1.0-blue.svg?longCache=true&logo=flask&style=flat-square&logoColor=white&colorB=5e81ac&colorA=4c566a)
66
![Gunicorn](https://img.shields.io/badge/Gunicorn-v21.2.0-blue.svg?longCache=true&logo=gunicorn&style=flat-square&logoColor=white&colorB=a3be8c&colorA=4c566a)
77
![GitHub Last Commit](https://img.shields.io/github/last-commit/google/skia.svg?style=flat-square&colorA=4c566a&colorB=a3be8c&logo=GitHub)

‎config.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Class-based Flask app configuration."""
2+
23
import subprocess
34
from os import environ, path
45

‎flask_blueprint_tutorial/__init__.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Initialize Flask app."""
2+
23
from flask import Flask
34
from flask_assets import Environment
45

‎flask_blueprint_tutorial/api.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Read placeholder data for demo purposes."""
2+
23
import json
34

45
from flask import Flask

‎flask_blueprint_tutorial/assets.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""Compile static assets."""
2+
23
from flask import current_app as app
3-
from flask_assets import Bundle
4+
from webassets.bundle import Bundle
45

56

67
def compile_static_assets(assets: Bundle) -> Bundle:

‎flask_blueprint_tutorial/home/home.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""General page routes."""
2+
23
from flask import Blueprint
34
from flask import current_app as app
45
from flask import render_template

‎flask_blueprint_tutorial/home/static/less/home.less‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
overflow: hidden;
6868
text-overflow: ellipsis;
6969
font-weight: 500;
70-
font-size: 1em;
70+
font-size: .9em;
7171
line-height: 1.3;
7272
height: 60px;
7373
}

‎flask_blueprint_tutorial/product/product.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Product pages."""
2+
23
from flask import Blueprint
34
from flask import current_app as app
45
from flask import render_template

‎flask_blueprint_tutorial/profile/profile.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Routes for logged-in profile."""
2+
23
from faker import Faker
34
from flask import Blueprint, render_template
45

‎flask_blueprint_tutorial/static/dist/css/home.css‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /