| 1 |
<h4>Queries Unavailable</h4> |
| 2 |
|
| 3 |
<p> |
| 4 |
The toolbar was unable to fetch the SQLAlchemy queries for this request. |
| 5 |
To enable the SQLAlchemy query display, please: |
| 6 |
</p> |
| 7 |
|
| 8 |
<ol> |
| 9 |
{% if not sqlalchemy_available %} |
| 10 |
<li> |
| 11 |
<h5>Install required libraries:</h5> |
| 12 |
<ul> |
| 13 |
<li>Flask-SQLAlchemy</li> |
| 14 |
</ul> |
| 15 |
</li> |
| 16 |
{% endif %} |
| 17 |
|
| 18 |
{% if not extension_used %} |
| 19 |
<li> |
| 20 |
<h5>Configure Flask-SQLAlchemy:</h5> |
| 21 |
<p> |
| 22 |
The Flask-SQLAlchemy extension needs to be configured for this application. |
| 23 |
Please see the <a href="https://flask-sqlalchemy.palletsprojects.com/quickstart/"> |
| 24 |
Flask-SQLAlchemy documentation</a> for details. |
| 25 |
</p> |
| 26 |
</li> |
| 27 |
{% endif %} |
| 28 |
|
| 29 |
{% if not recording_enabled %} |
| 30 |
<li> |
| 31 |
<h5>Enable query recording:</h5> |
| 32 |
<p> |
| 33 |
Since this app is not currently running in <code>DEBUG</code> mode, Flask-SQLAlchemy will not record queries by default. To enable query recording in non-debug mode, set the following configuration value: |
| 34 |
</p> |
| 35 |
<pre>app.config['SQLALCHEMY_RECORD_QUERIES'] = True</pre> |
| 36 |
<p> |
| 37 |
See the |
| 38 |
<a href="https://flask-sqlalchemy.palletsprojects.com/en/master/api/#flask_sqlalchemy.get_debug_queries"> |
| 39 |
documention of Flask-SQLAlchemy's <code>get_debug_queries()</code></a> |
| 40 |
for additional details. |
| 41 |
</p> |
| 42 |
</li> |
| 43 |
{% endif %} |
| 44 |
</ol> |