[root@TADServer rfdoc]# python manage.py import_library_doc /usr/local/lib/python2.7/site-packages/django/core/management/base.py:259: RemovedInDjango19Warning: "requires_model_validation" is deprecated in favor of "requires_system_checks". RemovedInDjango19Warning) 2017-06-08 07:08:03,041 py.warnings WARNING /usr/local/lib/python2.7/site-packages/django/core/management/base.py:259: RemovedInDjango19Warning: "requires_model_validation" is deprecated in favor of "requires_system_checks". RemovedInDjango19Warning) Traceback (most recent call last): File "manage.py", line 17, in <module> ManagementUtility().execute() File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 330, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/local/lib/python2.7/site-packages/django/core/management/base.py", line 378, in run_from_argv parser = self.create_parser(argv[0], argv[1]) File "/usr/local/lib/python2.7/site-packages/django/core/management/base.py", line 312, in create_parser help='Verbosity level; 0=minimal output, 1=normal output, 2=verbose output, 3=very verbose output') File "/usr/local/lib/python2.7/optparse.py", line 1018, in add_option raise TypeError, "invalid arguments" TypeError: invalid arguments
在django中的做manage.py 命令时出现如上错误。
经过尝试,发现是python版本的问题,原来是python2.7 现在换成python2.7.5就没有这个问题了。
