创建 Django 应用程序时出错: Python 端错误。退出代码: 1,错误: Traceback (most recent call 
last): File 
"D:\pycharm_stu\pycharm_stu_\plugins\python\helpers\pycharm\_jb_django_project_creator.py",
 
line 12, in   management.execute_from_command_line(argv=["django-admin", 
"startproject", project_name, path]) File 
"D:\anaconda\envs\cuda11.3\lib\site-packages\django\core\management\__init__.py",
 
line 446, in execute_from_command_line utility.execute() File 
"D:\anaconda\envs\cuda11.3\lib\site-packages\django\core\management\__init__.py",
 
line 440, in execute 
self.fetch_command(subcommand).run_from_argv(self.argv) File 
"D:\anaconda\envs\cuda11.3\lib\site-packages\django\core\management\base.py", 
line 402, in run_from_argv self.execute(*args, **cmd_options) File 
"D:\anaconda\envs\cuda11.3\lib\site-packages\django\core\management\base.py", 
line 448, in execute output = self.handle(*args, **options) File 
"D:\anaconda\envs\cuda11.3\lib\site-packages\django\core\management\commands\startproject.py",
 
line 21, in handle super().handle("project", project_name, target, 
**options) File 
"D:\anaconda\envs\cuda11.3\lib\site-packages\django\core\management\templates.py",
 
line 148, in handle django.setup() File 
"D:\anaconda\envs\cuda11.3\lib\site-packages\django\__init__.py", line 16, 
in setup from django.urls import set_script_prefix File 
"D:\anaconda\envs\cuda11.3\lib\site-packages\django\urls\__init__.py", line 
1, in   from .base import ( File 
"D:\anaconda\envs\cuda11.3\lib\site-packages\django\urls\base.py", line 8, 
in   from .exceptions import NoReverseMatch, Resolver404 File 
"D:\anaconda\envs\cuda11.3\lib\site-packages\django\urls\exceptions.py", 
line 1, in   from django.http import Http404 File 
"D:\anaconda\envs\cuda11.3\lib\site-packages\django\http\__init__.py", line 
8, in   from django.http.response import ( File 
"D:\anaconda\envs\cuda11.3\lib\site-packages\django\http\response.py", line 
16, in   from django.core.serializers.json import DjangoJSONEncoder File 
"D:\anaconda\envs\cuda11.3\lib\site-packages\django\core\serializers\__init__.py",
 
line 23, in   from django.core.serializers.base import 
SerializerDoesNotExist File 
"D:\anaconda\envs\cuda11.3\lib\site-packages\django\core\serializers\base.py", 
line 9, in   from django.db import models File 
"D:\anaconda\envs\cuda11.3\lib\site-packages\django\db\models\__init__.py", 
line 40, in   from django.db.models.fields.files import FileField, 
ImageField File 
"D:\anaconda\envs\cuda11.3\lib\site-packages\django\db\models\fields\files.py", 
line 8, in   from django.core.files.storage import Storage, default_storage 
File 
"D:\anaconda\envs\cuda11.3\lib\site-packages\django\core\files\storage\__init__.py",
 
line 3, in   from django.conf import DEFAULT_STORAGE_ALIAS, settings 
ImportError: cannot import name 'DEFAULT_STORAGE_ALIAS' from 'django.conf' 
(D:\anaconda\envs\cuda11.3\lib\site-packages\django\conf\__init__.py) ,输出:


 my django version is 4.2.11,  python version is 3.8,I was able to 
successfully run an existing Django project, but I got an error when 
creating the project

can anyone help me? thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/5eb98022-96fc-4c1b-83f5-ee72cda477cfn%40googlegroups.com.

Reply via email to