我想在我的django项目中使用djangular,但我遇到了问题。
问题是,当我想在django项目中用这个commant 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'
答案 0 :(得分:1)
阅读您的错误追溯一次。第一行清楚地表明,您使用python manage.py startangularapp djangularTest
而不是python manage.py startangularapp djangularTes t
。这意味着django会读取两个name
值。