Skip to content

Commit d840fb6

Browse files
committed
Update default host and port configuration
Changed the default Flask app host to 'localhost' and port to 2306 in constants.py. Updated the README to reflect the new default URL.
1 parent 212f9d8 commit d840fb6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ cd flaskBlog/app
3434
uv run app.py
3535
```
3636

37-
Visit `http://localhost:5000` in your browser.
37+
Visit `http://localhost:2306` in your browser.
3838

3939
### Default Admin Account
4040
- Username: `admin`

app/constants.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44

55
# Import necessary modules from the modules module
6-
from modules import secrets, socket
6+
from modules import secrets
77

88
# Name of the Flask application
99
APP_NAME = "flaskBlog" # (str)
@@ -15,10 +15,10 @@
1515
APP_ROOT_PATH = "." # (str)
1616

1717
# Hostname or IP address for the Flask application
18-
APP_HOST = socket.gethostbyname(socket.gethostname()) # (str)
18+
APP_HOST = "localhost" # (str)
1919

2020
# Port number for the Flask application
21-
APP_PORT = 5000 # (int)
21+
APP_PORT = 2306 # (int)
2222

2323
# Toggle debug mode for the Flask application
2424
DEBUG_MODE = False # (bool)

0 commit comments

Comments
 (0)