问题描述:

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).

相关阅读:
Top