Django stop working

Hello Team,

I need some help, I don’t know what I do on my Visual Studio Code while working on a project in Django/Python but now it did not work,

I meant, from my terminal I try to activate my virtual environment running the following script:

PS C:\Users\pm25383\OneDrive - Alliance\Documentos\Renault-Group> activate

but I got:

The term ‘activate’ is not recognized as a name of a cmdlet, function, script file, or executable program.

Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

I tried to go to virtual environment folder (that is named vDjango4.2.19)

PS C:\Users\pm25383\OneDrive - Alliance\Documentos\Renault-Group> cd vDejango4.2.19

butI got:

Set-Location: Cannot find path ‘C:\Users\pm25383\OneDrive - Alliance\Documentos\Renault-Group\vDejango4.2.19’ because it does not exist.

But the folder exists in windows.

I checked and I have installed Python with version 3.9.8 and Pip with version 22.0.4

But what is weird is that when I try to check version of Django-admin using command

PS C:\Users\pm25383\OneDrive - Alliance\Documentos\Renault-Group> django-admin --version

I got:

django-admin: The term ‘django-admin’ is not recognized as a name of a cmdlet, function, script file, or executable program.

Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

Is there anything I can do to fix the issue to continue working on my project? Thanks in advance for your support on this issue.

If you need any further information, please let me know, I will really appreciate any advise you can give me to fix this issue.

That is not the name of the directory you are showing. The directory name in your images is “vDjango4.2.19” which is why you’re getting the error message:

Also, the “activate” script is in the “scripts” directory, not within “vDjango4.2.19” itself.

I’m going to guess that none of the other commands are working because you don’t have the virtual environment activated.

1 Like

Oh my God!!!

I am feel so stupid. I get totally nervous thinking I have deleted any from the project that I did not see the obvious.

I have no words to apologize with you @KenWhitesell and all the community to waste your time checking this, this is something I’d have to be able to solve.

Thanks and sorry again.

Don’t worry about it. I think everyone here has done something similar. (I know that I have - multiple times.)