![]() views import mycoolapp create application def createapp (debugTrue): app Flask (name, instancerelativeconfigTrue) app.debug debug. You need to use currentapp: import sqlite3 from flask import Flask, g, currentapp from. any help where i can find the latest deployment packages. Your mycoolapp is an instance of Blueprint which doesnt have a config attribute. db files is not updated wiht latest rows only the initial files during deployment was present. i am downloading this and when verify by unzipping it the. import sqlite3 from flask import g DATABASE /path/to/database. i am downloading the folder from azure-advanced tools->go->Site. Lets see an example of SQLite3 with flask. db file should have all recent rows updated using the hosted api link and thought of using it again for redeployment so that the continuity is maintained and i have to repeat this same methodology in client implementation too for trouble shooting and database correction. pls helpĮxpected solution: the downloaded. Thought of using the downloaded db for trouble shooting but it got only the initial rows. db file but it contains only the initial rows which i upload during the initial deployment. Now i downloaded the wwwroot from app editor from azure page assuming all the recent rows inserted via hosted api can be seen in the download file ( wwwroot folder).Using hosted API I performed many crud operations and verified it to via postman all rows are updated. ![]() it has got all rows from the local which is fine. I deployed the project to azure using vs code. ![]() all crud operations works fine in local env. db file along wiht app.py for it to access it. I am using azure webservices for hosting my python flask app (os- linux), used SQLite DB which will do all crud operations from code.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |