Dear sir,
            Recently i have faced the same problem , what i did, i close
those apps and uninstall completely (vscode and python) remember to
uninstall vs you have to delete the extension files from app data which is
hidden , and after delete i restart the pc , then again install , is solved
out.

Another solution I can give that ,just find the path in vs code + sign i.e
that path is in the python file and select the env, it will also solve....


On Tue, Mar 22, 2022 at 10:37 AM 'Delvin Alexander' via Django users <
[email protected]> wrote:

> would anyone know why my "manage.py runserver" is not working?
>
> Every time i try running it on the command prompt, i get relocated to my
> visual studio of manage.py file that states this:
>
> #*!/usr/bin/env python*
> *"""Django's command-line utility for administrative tasks."""*
> *import os*
> *import sys*
>
>
> *def main():*
> *    """Run administrative tasks."""*
> *    os.environ.setdefault('DJANGO_SETTINGS_MODULE',
> 'django_project.settings')*
> *    try:*
> *        from django.core.management import execute_from_command_line*
> *    except ImportError as exc:*
> *        raise ImportError(*
> *            "Couldn't import Django. Are you sure it's installed and "*
> *            "available on your PYTHONPATH environment variable? Did you "*
> *            "forget to activate a virtual environment?"*
> *        ) from exc*
> *    execute_from_command_line(sys.argv)*
>
>
> *if __name__ == '__main__':*
> *    main()*
>
>
> A step in the right direction will be super helpful for me.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/69291c68-61e7-4557-8175-7b705bcfcbb0n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/69291c68-61e7-4557-8175-7b705bcfcbb0n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKpnBLeX40aqM4KKWaNSGG-paXO%2BXaS8V7mG1X%2Bo%2BNu%2BcYF9QA%40mail.gmail.com.

Reply via email to