I am following a tutorial on youtube on learning Django.The person i am following is using a macbook and i am on windows.The person run this command in his terminal trying to start a new project and he entered this code
django-admin startproject storefront
and he was successfull.But when i tried it for windows it gave an error. I googled the error and got a solution
python -m django startproject storefront
Then the man wanted to run the server using this code
manage.py runserver
and he was successfull but when i tied on windows it gave this error
mange.py' is not recognized as an internal or external command,
operable program or batch file.
CodePudding user response:
Keep using python
as the first word.
python manage.py runserver
Your terminal has to know, that you want interprete manage.py
as Python program.
CodePudding user response:
see Your project structure and find the manage.py file in your project folder For example
django-admin startproject storefront
then go to the project folder using command
cd storefront
after that your command
python manage.py runserver
Hope you will understand that project folder structure