‘git’ is not recognized as an internal or external command

Have you correctly set your PATH to point at your Git installation? You need to add the following paths to PATH: C:\Program Files\Git\bin\ C:\Program Files\Git\cmd\ And check that these paths are correct – you may have Git installed on a different drive, or under Program Files (x86). Correct the paths if necessary. Modifying PATH on Windows 10: In the Start Menu … Read more

What is the use of python-dotenv?

From the Github page: Reads the key,value pair from .env and adds them to environment variable. It is great of managing app settings during development and in production using 12-factor principles. Assuming you have created the .env file along-side your settings module. Add the following code to your settings.py .env is a simple text file. … Read more

‘git’ is not recognized as an internal or external command

Have you correctly set your PATH to point at your Git installation? You need to add the following paths to PATH: C:\Program Files\Git\bin\ C:\Program Files\Git\cmd\ And check that these paths are correct – you may have Git installed on a different drive, or under Program Files (x86). Correct the paths if necessary. Modifying PATH on … Read more

How to add to the PYTHONPATH in Windows, so it finds my modules/packages?

You know what has worked for me really well on windows. My Computer > Properties > Advanced System Settings > Environment Variables > Just add the path as C:\Python27 (or wherever you installed python) OR Then under system variables I create a new Variable called PythonPath. In this variable I have C:\Python27\Lib;C:\Python27\DLLs;C:\Python27\Lib\lib-tk;C:\other-folders-on-the-path This is the … Read more

how to get program files x86 env variable?

On a 64-bit machine running in 64-bit mode: echo %programfiles% ==> C:\Program Files echo %programfiles(x86)% ==> C:\Program Files (x86) On a 64-bit machine running in 32-bit (WOW64) mode: echo %programfiles% ==> C:\Program Files (x86) echo %programfiles(x86)% ==> C:\Program Files (x86) On a 32-bit machine running in 32-bit mode: echo %programfiles% ==> C:\Program Files echo %programfiles(x86)% … Read more

Using %PROGRAMFILES(x86)% on Windows OS 32bit

According to this the environment variable %PROGRAMFILES(x86)% is only available on 64-bit systems. However, if you are on a 64-bit system and use %PROGRAMFILES%, the result you get depend on whether the process requesting the environment variable is 32-bit or 64-bit. So from a 64-bit process on a 64-bit system you would get C:\Program Files, … Read more