I suppose activate
is a batch file and therefore needed is:
cd /D D:\Startup\venv\Scripts
call activate.bat
cd D:\Startup
python.exe manage.py runserver
Without command call the processing of a batch file continues on other batch file without returning which is the reason why the last two lines where never executed. Run in a command prompt window call /?
and read output help and for more details see for example also answer on How to call a batch file in the parent folder of current batch file?
Command CD with parameter /D
makes it possible to change directory and drive at the same time as cd /?
executed in a command prompt window explains.
In batch files it is advisable to specify batch files and executables with file extension.