Ensure that your manage.py file on your settings folder has the right syntax as shown.
On Tue, Mar 22, 2022, 08:07 '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/CAJt9CbgeTKVtcuiARCtiGmHu-8-7nP3cFc4Wjdq0yqxbu80-oA%40mail.gmail.com.

