Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何查看数据库 #1

Closed
Aiooon opened this issue Oct 26, 2017 · 4 comments
Closed

如何查看数据库 #1

Aiooon opened this issue Oct 26, 2017 · 4 comments

Comments

@Aiooon
Copy link

Aiooon commented Oct 26, 2017

在这个项目中 我执行到这一步时:
6d7cf121 409e2a6c30 aa5bf159 jpg_recompress

我无法找到和链接到我所建的数据库和表
1 jpg

826b9e4c 40ebef0520 aa5bf159 jpg_recompress

起初我以为是表创建失败了,但是在我执行后面的步骤时,发现可以对数据库进行正常操作,但我仍然无法找到我的数据库和表,pycharm中也没有显示
616c88a12d9446ea90cb7d47a242ead2
d6baac89 404754b179 aa5bf159 jpg_recompress

查了很多方法还是没有解决,希望你能帮助我,谢谢!

@twtrubiks
Copy link
Owner

hi @Aiooon
我從你的截圖看,db.sqlite3在你的路徑 django-tutorial/db.sqlite3

1.使用pycharm查看資料庫
你沒辦法從 pycharm 看db,應該只是因為你沒有 driver (download missing driver files)
安裝完後(點你截圖上的 download ),應該就可以使用了。

2.使用 sqlitebrowser 觀看資料庫
下載後,將你的 db.sqlite3 用 sqlitebrowser 開啟即可。

@Aiooon
Copy link
Author

Aiooon commented Oct 26, 2017

非常感谢!已经解决了!

@ekils
Copy link

ekils commented Apr 24, 2018

請問,superuser 創建後能否刪除?以及如何修改superuser的密碼?

@twtrubiks
Copy link
Owner

@ekils 當然可以刪除。

修改superuser的密碼

python manage.py changepassword *username* 

官方文件 Changing passwords

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants