Python 在django项目中使用django应用程序
我想在django项目中使用,但我有一个问题。 问题是,当我想在django项目中使用这个commantPython 在django项目中使用django应用程序,python,angularjs,django,Python,Angularjs,Django,我想在django项目中使用,但我有一个问题。 问题是,当我想在django项目中使用这个commantpython manage.py startangularapp djangularTest创建djangularapp时,它会显示以下错误: C:\Users\Mohammad\Desktop\andjango>python manage.py startangularapp djangularTes t Traceback (most recent call last): Fil
python manage.py startangularapp djangularTest创建djangularapp时,它会显示以下错误:
C:\Users\Mohammad\Desktop\andjango>python manage.py startangularapp djangularTes t Traceback (most recent call last): File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv) File "C:\Python34\lib\site-packages\django\core\management\__init__.py", line 338, in execute_from_command_line
utility.execute() File "C:\Python34\lib\site-packages\django\core\management\__init__.py", line 330, in execute
self.fetch_command(subcommand).run_from_argv(self.argv) File "C:\Python34\lib\site-packages\django\core\management\base.py", line 390, in run_from_argv
self.execute(*args, **cmd_options) File "C:\Python34\lib\site-packages\django\core\management\base.py", line 441, in execute
output = self.handle(*args, **options) File "C:\Python34\lib\site-packages\djangular-0.3.0b1-py3.4.egg\djangular\mana gement\commands\startangularapp.py", line 20, in handle
mgmt.call_command('startapp', app_name, target, **options)
TypeError: call_command() got multiple values for argument 'name'
C:\Users\Mohammad\Desktop\andjango>python manage.py startangularapp djangularTes t Traceback(最后一次调用):文件“manage.py”,第10行,在
从命令行(sys.argv)执行文件“C:\Python34\lib\site packages\django\core\management\\uuuuuuu init\uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu
utility.execute()文件“C:\Python34\lib\site packages\django\core\management\\uuuu init\uuuu.py”,在execute中的第330行
self.fetch_命令(子命令)。从_argv(self.argv)文件“C:\Python34\lib\site packages\django\core\management\base.py”第390行运行_,从_argv运行
self.execute(*args,**cmd_options)文件“C:\Python34\lib\site packages\django\core\management\base.py”,第441行,在execute中
output=self.handle(*args,**选项)文件“C:\Python34\lib\site packages\djangal-0.3.0b1-py3.4.egg\djangal\mana gement\commands\startangularapp.py”,第20行,在handle中
管理调用命令('startapp',应用程序名称,目标,**选项)
TypeError:call_command()为参数“name”获取了多个值
读取一次错误回溯。第一行清楚地显示,您使用的不是python manage.py startangulapp djangularTest
,而是python manage.py startangulapp djangularTes t
。这意味着django读取两个name
值。谢谢,但在这里提问之前,我已经尝试了所有的测试用例,但没有一个是解决办法。当然,你的解决方案是行不通的。