Django is “unable to open database file”

后端 未结 7 1246
栀梦
栀梦 2020-12-15 02:58

after running \"python manage.py syncdb\" i gett an error saying \"unable to open database file\".

here is the important part from my settings.py:

DA         


        
7条回答
  •  庸人自扰
    2020-12-15 03:37

    DATABASE_NAME is deprecated. You must use the currently supported format. i.e.

    DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': 'C:/ispdb.sqlite',
        'USER': '',
        'PASSWORD': '',
        'HOST': '',
        'PORT': ''
    
    }
    

    And also see other settings which are deprecated from the django website.:))

提交回复
热议问题