0

How to start a new django project if you closed the command prompt and also how can I again run live server???

I tried cd file name Later on I used django-admin startproject project I can run server but it worked in python terminal not in command prompt. It creates my project but the project is created in python terminal which creates issues to work further. So anyone have any idea ?

14th Dec 2020, 5:34 AM
Swati Ahirwar
Swati Ahirwar - avatar
2 Answers
+ 4
Use Terminal in a Code Editor Create project directory, and the terminal will be opened at that directory. Then you can use the initiation commands.
14th Dec 2020, 10:34 AM
Gordon
Gordon - avatar
+ 1
Ok, make a directory like: My_project or whatever you want.. Copy the absolute path of that directory and open command prompt.. type cd(and paste the absolute path with double backslashes) Once you do this, you will be in that directory.. Then do the django-admin startproject (whatever) The project will be in that directory which you made.. Also, don't use command prompt, try Git Bash or the normal terminal in your IDE..
27th Dec 2020, 5:01 PM
Aryan D'cruz
Aryan D'cruz - avatar