Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

django "python manage.py validate" error : unknown command 'validate'

With running this command:

python manage.py validate

I faced with this error:

Unknown command: 'validate'

What should I do now?

For more explanations:

  • Linux

  • Virtualenv

  • Python 3.4.3+

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

like image 269
niloofar Avatar asked Feb 23 '16 12:02

niloofar


2 Answers

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

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

like image 60
Ahmed Hosny Avatar answered Nov 03 '22 14:11

Ahmed Hosny


With python manage.py these commands are listed:

Available subcommands:

[auth]

changepassword

createsuperuser

[django]

check

compilemessages

createcachetable

dbshell

diffsettings

dumpdata

flush

inspectdb

loaddata

makemessages

makemigrations

migrate

sendtestemail

shell

showmigrations

sqlflush

sqlmigrate

sqlsequencereset

squashmigrations

startapp

startproject

test

testserver

[sessions]

clearsessions

[staticfiles]

collectstatic

findstatic

runserver

There is no "validate" command in the list.

like image 35
niloofar Avatar answered Nov 03 '22 14:11

niloofar