This is the error I receive from the browser 这是应用程序urls.py文件的代码 from django.urls import path path('post/<int:pk>/publish',views.post_publish,name='post_publish'),
] 这是站点urls.py文件的代码from dj
我是Django的新手,每次我尝试运行python panel/manage.py startapp %app% (面板是我的项目)时,它都会给我错误:
Error: '%app%' conflictswith the name of an existing Python module and cannot be used as an app name.当然,公司或联系人或统计数据不是现有Python模块的名称?
我得到了一个NoReverseMatch,我从我的“url”中了解到它,但基本上就是这样,我使用的是url()而不是path().at --它的末尾--我只是把我的代码搞得一团糟。view.pyfrom django.http import HttpResponseRedirect
from django.urlspatterns for learning lo
我正在尝试运行以下命令但是,得到了错误File "C:\Python34\lib\site-packages\django\core\management\__init__.py", line 359, in execute
self.fetch_command(subcommand).run_from_argv(