You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: code-image-generator/README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Build a Code Image Generator with Flask, Pygments, and Playwright
2
2
3
-
Follow the [step-by-step instructions](https://realpython.com/code-image-generator/) on Real Python.
3
+
Follow the [step-by-step instructions](https://realpython.com/python-code-image-generator/) on Real Python.
4
4
5
5
## Setup
6
6
@@ -18,7 +18,7 @@ Activate the virtual environment:
18
18
source ./venv/bin/activate
19
19
```
20
20
21
-
Navigate to the folder for the step you're currently on.
21
+
Navigate to the folder for the step that you're currently on.
22
22
23
23
Install the dependencies for this project if you haven't installed them yet:
24
24
@@ -52,7 +52,7 @@ If you need to create cryptographically sound data like a Flask secret key, then
52
52
'2e9ac41b1e0b66a8d93d66400e2300c4b4c2953f'
53
53
```
54
54
55
-
The `.token_hex()` method returns a [hexadecimal](https://en.wikipedia.org/wiki/Hexadecimal) string containing random numbers and letters from `0` to `9` and `a` to `f`. Use the value that `secrets.token_hex()` outputs for you and add it in your Flask project's `app.py` file:
55
+
The `.token_hex()` method returns a [hexadecimal](https://en.wikipedia.org/wiki/Hexadecimal) string containing random numbers and letters from `0` to `9` and `a` to `f`. Use the value that `secrets.token_hex()` outputs for you and add it to your Flask project's `app.py` file:
To not save the secret key directly in your code, it may be a good idea to work with [environment variables](https://12factor.net/config). You can learn more about it in the Flask documentation about [Configuration Handling](https://flask.palletsprojects.com/en/2.3.x/config/).
68
+
To avoid saving the secret key directly in your code, it may be a good idea to work with [environment variables](https://12factor.net/config). You can learn more about that in the Flask documentation on [configuration handling](https://flask.palletsprojects.com/en/2.3.x/config/).
0 commit comments