Reputation: 1347
I am following a Django tutorial. After creating the project tictactoe, I opened it using PyCharm professional
According to some PyCharm tutorials the database should be automatically recognised and should appear on the database windows. This is not the case.
According to other PyCharm tutorials I should be able to drag the db.sqlite3 file into the database windows to automatically connect to the database and this is also not working.
Could someone guide me step by step and explain how do I connect to the DB and how I visualise its content?
Thank you for your help
Upvotes: 1
Views: 2123
Reputation: 3286
You need to click the +
button, then Data Source
, and in your case, select SQLite from the dropdown. After that, in the new window, select the actual db.sqlite3
file.
Upvotes: 2
Reputation: 3392
In order to create a db you have to run the command python manage.py migrate in your command prompt or terminal
Upvotes: 3