django python”管理。py验证" error:未知命令'validate'

时间:2022-12-12 18:04:44

With running this command:

运行这条命令:

python manage.py validate

python管理。py验证

I faced with this error:

我面对这个错误:

Unknown command: 'validate'

未知的命令:“验证”

What should I do now?

我现在该怎么办?

For more explanations:

更多的解释:

  • Linux

    Linux

  • Virtualenv

    Virtualenv

  • Python 3.4.3+

    Python 3.4.3 +

  • Django (1, 9, 2, 'final', 0)

    Django (1, 9, 2, 'final', 0)

3 个解决方案

#1


23  

I think python manage.py validate is deprecated since 1.7, you can use python manage.py check

我认为python管理。自从1.7以来,py验证被弃用,您可以使用python管理。py检查

https://docs.djangoproject.com/en/1.7/ref/django-admin/#validate

https://docs.djangoproject.com/en/1.7/ref/django-admin/验证

#2


1  

With python manage.py these commands are listed:

与python管理。py这些命令列示如下:

Available subcommands:

可用子命令:

[auth]

(认证)

changepassword

changepassword

createsuperuser

createsuperuser

[django]

(django)

check

检查

compilemessages

compilemessages

createcachetable

createcachetable

dbshell

dbshell

diffsettings

diffsettings

dumpdata

dumpdata

flush

冲洗

inspectdb

inspectdb

loaddata

loaddata

makemessages

makemessages

makemigrations

makemigrations

migrate

迁移

sendtestemail

sendtestemail

shell

壳牌

showmigrations

showmigrations

sqlflush

sqlflush

sqlmigrate

sqlmigrate

sqlsequencereset

sqlsequencereset

squashmigrations

squashmigrations

startapp

startapp

startproject

startproject

test

测试

testserver

testserver

[sessions]

(会议)

clearsessions

clearsessions

[staticfiles]

(staticfiles)

collectstatic

collectstatic

findstatic

findstatic

runserver

runserver

There is no "validate" command in the list.

列表中没有“validate”命令。

#3


0  

With this command:

使用这个命令:

pip install Django==1.8.2

pip安装Django = = 1.8.2

the problem will be solved. Django==1.9.2 does not support some commands.

这个问题将会得到解决。Django==1.9.2不支持某些命令。

#1


23  

I think python manage.py validate is deprecated since 1.7, you can use python manage.py check

我认为python管理。自从1.7以来,py验证被弃用,您可以使用python管理。py检查

https://docs.djangoproject.com/en/1.7/ref/django-admin/#validate

https://docs.djangoproject.com/en/1.7/ref/django-admin/验证

#2


1  

With python manage.py these commands are listed:

与python管理。py这些命令列示如下:

Available subcommands:

可用子命令:

[auth]

(认证)

changepassword

changepassword

createsuperuser

createsuperuser

[django]

(django)

check

检查

compilemessages

compilemessages

createcachetable

createcachetable

dbshell

dbshell

diffsettings

diffsettings

dumpdata

dumpdata

flush

冲洗

inspectdb

inspectdb

loaddata

loaddata

makemessages

makemessages

makemigrations

makemigrations

migrate

迁移

sendtestemail

sendtestemail

shell

壳牌

showmigrations

showmigrations

sqlflush

sqlflush

sqlmigrate

sqlmigrate

sqlsequencereset

sqlsequencereset

squashmigrations

squashmigrations

startapp

startapp

startproject

startproject

test

测试

testserver

testserver

[sessions]

(会议)

clearsessions

clearsessions

[staticfiles]

(staticfiles)

collectstatic

collectstatic

findstatic

findstatic

runserver

runserver

There is no "validate" command in the list.

列表中没有“validate”命令。

#3


0  

With this command:

使用这个命令:

pip install Django==1.8.2

pip安装Django = = 1.8.2

the problem will be solved. Django==1.9.2 does not support some commands.

这个问题将会得到解决。Django==1.9.2不支持某些命令。