Search code examples
pythondjangodatabasevisual-studio-code

Is there a way to EDIT databases (sqlite) in VSCode?


I am currently trying toed the database that comes with Django. Im tryin to use the VSCode Extension vscode-sqlite to edit the database. While I currently am able to look at the database without the gibberish that shows up when I try to open the database in a text editor, I can't find a way to actually edit the database. I think the buttons on the upper right corner of the UI might have something to do with whatever Im trying to achieve, but I dont really know what they do. Any help would really be appreciated.

the unexplained buttons

the unexplained buttons


Solution

  • you can write data into your database using the Django administrative utility loaddata command. This utility is often used to initialize a data set after the command has initialized the schema.

    You can refer to the document of vscode for more details.