Im brand new to django and am wondering if i could get some help, Im working my way through the guide on the django website and have got to the point of starting a new project with ...\> django-admin startproject mysite
after running this command in the terminal I get back an error saying
django-admin : The term 'django-admin' is not recognized as the name of a cmdlet,
function, script file, or operable program. Check the spelling of the name, or if a
path was included, verify that the path is correct and try again.
At line:1 char:1
django-admin
~~~~~~~~~~~~
CategoryInfo : ObjectNotFound: (django-admin:String) [], CommandNotFoun
dException
FullyQualifiedErrorId : CommandNotFoundException
Im not a huge fan of the windows terminal and try my best to understand the errors it throws at me but cant. could someone help me out with this please.
CodePudding user response:
Check the official docs and guide.
CodePudding user response:
I'm not on windows myself but I reckon that error simply means you did not install Django (or Windows can't find it). Try doing pip install django
as @Fiddling Bits mentioned (or pipenv install django
if you use pipenv).
The Djangogirls installation guide seems very thorough and also includes instructions for Windows: https://tutorial.djangogirls.org/en/installation/
CodePudding user response:
are you using PowerShell ? if yes use command prompt. hope it help.