'When I gave command on CMD manage.py runserver it instead took me into VS Code and when i ran it in VS code error was on (from django.core.management)

When I ran the command on CMD manage.py runserver it intern redirected to VS Code. When I tried to run on VS Code it showed the system cannot find the specified path. It was underlining this statement:

try:
        from django.core.management 
             ^^^^^^^^^^^^^^^^^^^^^^


Solution 1:[1]

  1. first you need to add the python path to your variable environnement

  2. Second navigate to your django project and use terminal with this command :

    python manage.py runserver

  3. use Docs

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Miloud Mokkedem