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: download_encrypted_pdf.md
+6-2
Original file line number
Diff line number
Diff line change
@@ -187,12 +187,12 @@ class Config(object):
187
187
Flask expects these configurations to be registered in the application's instance. We can do this by instantiating the `Config` class in the `__init__.py` file.
188
188
189
189
190
-
`app/__init__.py`: Instantiate packages
190
+
`app/__init__.py`: Add configurations
191
191
192
192
```python
193
193
194
194
# ...
195
-
fromConfigimport Config
195
+
fromconfigimport Config
196
196
197
197
198
198
app = Flask(__name__)
@@ -494,6 +494,10 @@ The document is finally closed using the `output()` method. This method takes tw
494
494
495
495
Now what we know how to utilize `fpdf` to create a PDF file, let us update our `download_users_data()` function.
0 commit comments