Skip to content

Commit e97c0b6

Browse files
committed
Update dependencies; redcue number of workers; resolve style issue.
1 parent bd19480 commit e97c0b6

File tree

7 files changed

+832
-47
lines changed

7 files changed

+832
-47
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ $(VIRTUAL_ENV):
3232

3333
.PHONY: run
3434
run: env
35-
$(LOCAL_PYTHON) -m gunicorn -w 4 wsgi:app
35+
$(LOCAL_PYTHON) -m gunicorn wsgi:app
3636

3737
.PHONY: install
3838
install: env

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Flask-Login 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.1.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.1-blue.svg?longCache=true&logo=flask&style=flat-square&logoColor=white&colorB=5e81ac&colorA=4c566a)
55
![Flask-Login](https://img.shields.io/badge/Flask--Login-v0.6.3-blue.svg?longCache=true&logo=flask&style=flat-square&logoColor=white&colorB=5e81ac&colorA=4c566a)
66
![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)
77
![Flask-WTF](https://img.shields.io/badge/Flask--WTF-v1.2.2-blue.svg?longCache=true&logo=python&style=flat-square&logoColor=white&colorB=5e81ac&colorA=4c566a)

flask_login_tutorial/auth.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def signup():
3434
flash("A user already exists with that email address.")
3535
return render_template(
3636
"signup.jinja2",
37-
title="Create an Account.",
37+
title="Create an Account",
3838
form=form,
3939
template="signup-page",
4040
body="Sign up for a user account.",
@@ -65,9 +65,9 @@ def login():
6565
return render_template(
6666
"login.jinja2",
6767
form=form,
68-
title="Log in.",
68+
title="Log in",
6969
template="login-page",
70-
body="Log in with your User account.",
70+
body="Log in with your User credentials.",
7171
)
7272

7373

flask_login_tutorial/static/src/less/account.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
font-size: 1.5rem;
7575
font-weight: 700;
7676
line-height: 1;
77-
color: #000;
77+
color: @alert-warning-text-color;
7878
text-shadow: 0 1px 0 #fff;
7979
opacity: .4;
8080

gunicorn.conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
proc_name = "flasklogin"
1515
wsgi_app = "wsgi:app"
1616
bind = "unix:flask.sock"
17-
threads = 4
18-
workers = 2
17+
threads = 1
18+
workers = 1
1919

2020
if ENVIRONMENT == "development" or ENVIRONMENT is None:
2121
reload = True

poetry.lock

Lines changed: 786 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

requirements.txt

Lines changed: 37 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,37 @@
1-
black==25.1.0 ; python_version >= "3.10" and python_version < "4.0"
2-
blinker==1.9.0 ; python_version >= "3.10" and python_version < "4.0"
3-
click==8.1.8 ; python_version >= "3.10" and python_version < "4.0"
4-
colorama==0.4.6 ; python_version >= "3.10" and python_version < "4.0" and platform_system == "Windows"
5-
cssmin==0.2.0 ; python_version >= "3.10" and python_version < "4.0"
6-
dnspython==2.7.0 ; python_version >= "3.10" and python_version < "4.0"
7-
email-validator==2.2.0 ; python_version >= "3.10" and python_version < "4.0"
8-
flake8==7.2.0 ; python_version >= "3.10" and python_version < "4.0"
9-
flask-assets==2.1.0 ; python_version >= "3.10" and python_version < "4.0"
10-
flask-login==0.6.3 ; python_version >= "3.10" and python_version < "4.0"
11-
flask-sqlalchemy==3.1.1 ; python_version >= "3.10" and python_version < "4.0"
12-
flask-wtf==1.2.2 ; python_version >= "3.10" and python_version < "4.0"
13-
flask==3.1.0 ; python_version >= "3.10" and python_version < "4.0"
14-
greenlet==3.2.1 ; python_version >= "3.10" and python_version < "3.14" and (platform_machine == "aarch64" or platform_machine == "ppc64le" or platform_machine == "x86_64" or platform_machine == "amd64" or platform_machine == "AMD64" or platform_machine == "win32" or platform_machine == "WIN32")
15-
gunicorn==23.0.0 ; python_version >= "3.10" and python_version < "4.0"
16-
idna==3.10 ; python_version >= "3.10" and python_version < "4.0"
17-
isort==6.0.1 ; python_version >= "3.10" and python_version < "4.0"
18-
itsdangerous==2.2.0 ; python_version >= "3.10" and python_version < "4.0"
19-
jinja2==3.1.6 ; python_version >= "3.10" and python_version < "4.0"
20-
jsmin==3.0.1 ; python_version >= "3.10" and python_version < "4.0"
21-
lesscpy==0.15.1 ; python_version >= "3.10" and python_version < "4.0"
22-
markupsafe==3.0.2 ; python_version >= "3.10" and python_version < "4.0"
23-
mccabe==0.7.0 ; python_version >= "3.10" and python_version < "4.0"
24-
mypy-extensions==1.1.0 ; python_version >= "3.10" and python_version < "4.0"
25-
packaging==25.0 ; python_version >= "3.10" and python_version < "4.0"
26-
pathspec==0.12.1 ; python_version >= "3.10" and python_version < "4.0"
27-
platformdirs==4.3.8 ; python_version >= "3.10" and python_version < "4.0"
28-
ply==3.11 ; python_version >= "3.10" and python_version < "4.0"
29-
pycodestyle==2.13.0 ; python_version >= "3.10" and python_version < "4.0"
30-
pyflakes==3.3.2 ; python_version >= "3.10" and python_version < "4.0"
31-
pymysql==1.1.1 ; python_version >= "3.10" and python_version < "4.0"
32-
python-dotenv==1.1.0 ; python_version >= "3.10" and python_version < "4.0"
33-
sqlalchemy==2.0.40 ; python_version >= "3.10" and python_version < "4.0"
34-
tomli==2.2.1 ; python_version >= "3.10" and python_version < "3.11"
35-
typing-extensions==4.13.2 ; python_version >= "3.10" and python_version < "4.0"
36-
webassets==2.0 ; python_version >= "3.10" and python_version < "4.0"
37-
werkzeug==3.1.3 ; python_version >= "3.10" and python_version < "4.0"
38-
wtforms==3.2.1 ; python_version >= "3.10" and python_version < "4.0"
1+
black==25.1.0 ; python_version >= "3.12" and python_version < "4.0"
2+
blinker==1.9.0 ; python_version >= "3.12" and python_version < "4.0"
3+
click==8.2.1 ; python_version >= "3.12" and python_version < "4.0"
4+
colorama==0.4.6 ; python_version >= "3.12" and python_version < "4.0" and platform_system == "Windows"
5+
cssmin==0.2.0 ; python_version >= "3.12" and python_version < "4.0"
6+
dnspython==2.7.0 ; python_version >= "3.12" and python_version < "4.0"
7+
email-validator==2.2.0 ; python_version >= "3.12" and python_version < "4.0"
8+
flake8==7.2.0 ; python_version >= "3.12" and python_version < "4.0"
9+
flask-assets==2.1.0 ; python_version >= "3.12" and python_version < "4.0"
10+
flask-login==0.6.3 ; python_version >= "3.12" and python_version < "4.0"
11+
flask-sqlalchemy==3.1.1 ; python_version >= "3.12" and python_version < "4.0"
12+
flask-wtf==1.2.2 ; python_version >= "3.12" and python_version < "4.0"
13+
flask==3.1.1 ; python_version >= "3.12" and python_version < "4.0"
14+
greenlet==3.2.2 ; python_version >= "3.12" and python_version < "3.14" and (platform_machine == "aarch64" or platform_machine == "ppc64le" or platform_machine == "x86_64" or platform_machine == "amd64" or platform_machine == "AMD64" or platform_machine == "win32" or platform_machine == "WIN32")
15+
gunicorn==23.0.0 ; python_version >= "3.12" and python_version < "4.0"
16+
idna==3.10 ; python_version >= "3.12" and python_version < "4.0"
17+
isort==6.0.1 ; python_version >= "3.12" and python_version < "4.0"
18+
itsdangerous==2.2.0 ; python_version >= "3.12" and python_version < "4.0"
19+
jinja2==3.1.6 ; python_version >= "3.12" and python_version < "4.0"
20+
jsmin==3.0.1 ; python_version >= "3.12" and python_version < "4.0"
21+
lesscpy==0.15.1 ; python_version >= "3.12" and python_version < "4.0"
22+
markupsafe==3.0.2 ; python_version >= "3.12" and python_version < "4.0"
23+
mccabe==0.7.0 ; python_version >= "3.12" and python_version < "4.0"
24+
mypy-extensions==1.1.0 ; python_version >= "3.12" and python_version < "4.0"
25+
packaging==25.0 ; python_version >= "3.12" and python_version < "4.0"
26+
pathspec==0.12.1 ; python_version >= "3.12" and python_version < "4.0"
27+
platformdirs==4.3.8 ; python_version >= "3.12" and python_version < "4.0"
28+
ply==3.11 ; python_version >= "3.12" and python_version < "4.0"
29+
pycodestyle==2.13.0 ; python_version >= "3.12" and python_version < "4.0"
30+
pyflakes==3.3.2 ; python_version >= "3.12" and python_version < "4.0"
31+
pymysql==1.1.1 ; python_version >= "3.12" and python_version < "4.0"
32+
python-dotenv==1.1.0 ; python_version >= "3.12" and python_version < "4.0"
33+
sqlalchemy==2.0.41 ; python_version >= "3.12" and python_version < "4.0"
34+
typing-extensions==4.13.2 ; python_version >= "3.12" and python_version < "4.0"
35+
webassets==2.0 ; python_version >= "3.12" and python_version < "4.0"
36+
werkzeug==3.1.3 ; python_version >= "3.12" and python_version < "4.0"
37+
wtforms==3.2.1 ; python_version >= "3.12" and python_version < "4.0"

0 commit comments

Comments
 (0)