https://stackoverflow.com/questions/58661812/django-python-manage-py-runserver-not-working

On Tue, Mar 22, 2022 at 10:37 AM 'Delvin Alexander' via Django users <
django-users@googlegroups.com> 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 django-users+unsubscr...@googlegroups.com.
> 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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKpnBLdRBu-qo%3DbqVAzaH9EDJoDdHTZitCSFh3BNPkApQXth6A%40mail.gmail.com.

Reply via email to