What Visual Studio shows you is the content of the file "manage.py".
Apparently when you enter "manage.py [whatever]", Windows understands that you
want to open the file "manage.py", and it thinks that Visual Studio is the
program with which such files should be opened.
Try "python manage.py runserver" instead.
Antonis Christofides
+30-6979924665 (mobile)
On 22/03/2022 07.07, 'Delvin Alexander' via Django users 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/d4cdd3dc-744a-1af3-0450-7badfeb8b48b%40antonischristofides.com.