当前位置: 动力学知识库 > 问答 > 编程问答 >

django - Unable to open sqlite3 database file

问题描述:

This question already has an answer here:

  • Django is “unable to open database file”

    5 answers

网友答案:

To create the database with Django, you have to write your models, put applications in the settings.INSTALLED_APPS and then:

python manage.py syncdb

The sqlall command prints the CREATE TABLE and initial-data SQL statements for the given app name(s).

分享给朋友:
您可能感兴趣的文章:
随机阅读: