Django CMS安装程序无法创建数据库

时间:2018-09-11 09:21:32

标签: django django-cms

我遵循了http://docs.django-cms.org/en/latest/introduction/install.html中介绍的教程,直到我想使用djangocms -f -p . mysite创建一个项目之后,它运行得很好,然后出现以下错误:

(venv) C:\Users\Akbar\Desktop\djangocmsTest\tutorial-project>djangocms -f -p . mysite
Creating the project
Please wait while I install dependencies
If I am stuck for a long time, please check for connectivity / PyPi issues
Dependencies installed
Creating the project
The installation has failed.


*****************************************************************

Check documentation at https://djangocms-installer.readthedocs.io

*****************************************************************

Traceback (most recent call last):
  File "c:\python\python37\Lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\python\python37\Lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\Akbar\Desktop\djangocmsTest\venv\Scripts\djangocms.exe\__main__.py", line 9, in <module>
  File "c:\users\akbar\desktop\djangocmstest\venv\lib\site-packages\djangocms_installer\main.py", line 44, in execute
    django.setup_database(config_data)
  File "c:\users\akbar\desktop\djangocmstest\venv\lib\site-packages\djangocms_installer\django\__init__.py", line 407, in setup_database
    command, env=env, stderr=subprocess.STDOUT
  File "c:\python\python37\Lib\subprocess.py", line 376, in check_output
    **kwargs).stdout
  File "c:\python\python37\Lib\subprocess.py", line 468, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['c:\\users\\akbar\\desktop\\djangocmstest\\venv\\scripts\\python.exe', '-W', 'ignore', 'manage.py', 'migrate']' returned non-zero exit status 1.

正如您所见,没有问题可以回答。

0 个答案:

没有答案