Help with manage.py help

385 views
Skip to first unread message

Matías V

unread,
Nov 2, 2019, 2:51:02 PM11/2/19
to Django users
I installed django (2, 2, 6, 'final', 0)

My python is
Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:06:47) [MSC v.1914 32 bit (Intel)] on win32

I’am taking a corurs of django, first start e Project  with django-admin startproject Proyecto1 and workted. Created a folder with manage.py in sade


But it does not work.



Traceback (most recent call last):

  File "C:\Users\MValino\Desktop\ProyectoDjango\Proyecto1\manage.py", line 10, in main

    from django.core.management import execute_from_command_line

ModuleNotFoundError: No module named 'django'


The above exception was the direct cause of the following exception:


Traceback (most recent call last):

  File "C:\Users\MValino\Desktop\ProyectoDjango\Proyecto1\manage.py", line 21, in <module>

    main()

  File "C:\Users\MValino\Desktop\ProyectoDjango\Proyecto1\manage.py", line 16, in main

    ) from exc

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?


I all ready add de PATH to windows

Sin título.png



I dont know wath else to do



Jordan Micle

unread,
Nov 2, 2019, 4:54:50 PM11/2/19
to Django users
That error occur because you didn't install django.
Or you didn't activate the environment

Rohit Kurangi

unread,
Nov 2, 2019, 6:08:41 PM11/2/19
to django...@googlegroups.com
Please install- pip install django

On Sat, 2 Nov, 2019, 10:24 PM Jordan Micle, <jordanm...@gmail.com> wrote:
That error occur because you didn't install django.
Or you didn't activate the environment

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/5cf44c4a-f26a-4839-b72e-292e8a9d3695%40googlegroups.com.

Matías Valiño

unread,
Nov 2, 2019, 9:56:44 PM11/2/19
to django...@googlegroups.com
i did
C:\Users\MValino\Desktop\ProyectoDjango\Proyecto1>pip install django
Requirement already satisfied: django in c:\program files (x86)\python37-32\lib\site-packages (2.2.6)
Requirement already satisfied: sqlparse in c:\program files (x86)\python37-32\lib\site-packages (from django) (0.3.0)
Requirement already satisfied: pytz in c:\program files (x86)\python37-32\lib\site-packages (from django) (2018.5)

but manage.py help do not work


Matías V

unread,
Nov 2, 2019, 9:58:23 PM11/2/19
to Django users
I did

C:\Users\MValino\Desktop\ProyectoDjango\Proyecto1>pip install django
Requirement already satisfied: django in c:\program files (x86)\python37-32\lib\site-packages (2.2.6)
Requirement already satisfied: sqlparse in c:\program files (x86)\python37-32\lib\site-packages (from django) (0.3.0)
Requirement already satisfied: pytz in c:\program files (x86)\python37-32\lib\site-packages (from django) (2018.5)

but manage.py  help , do not workt

C:\Users\MValino\Desktop\ProyectoDjango\Proyecto1>manage.py help
Traceback (most recent call last):
  File "C:\Users\MValino\Desktop\ProyectoDjango\Proyecto1\manage.py", line 10, in main
    from django.core.management import execute_from_command_line
ModuleNotFoundError: No module named 'django'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\Users\MValino\Desktop\ProyectoDjango\Proyecto1\manage.py", line 21, in <module>
    main()
  File "C:\Users\MValino\Desktop\ProyectoDjango\Proyecto1\manage.py", line 16, in main
    ) from exc
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?

El sábado, 2 de noviembre de 2019, 15:08:41 (UTC-3), Rohit Kurangi escribió:
Please install- pip install django

On Sat, 2 Nov, 2019, 10:24 PM Jordan Micle, <jordanm...@gmail.com> wrote:
That error occur because you didn't install django.
Or you didn't activate the environment

--
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...@googlegroups.com.

Matías V

unread,
Nov 2, 2019, 10:09:50 PM11/2/19
to Django users
I use python manage.py help and workt, but i dont   understand why 

Mohammad yunus

unread,
Nov 3, 2019, 2:21:47 AM11/3/19
to django...@googlegroups.com
If u type "python manage.py help" it will work..if u type only"manage.py hello" it will show error...I think it's version problem,,can u tell us what u want to do

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/94f3eeb0-dfcf-4d81-a5cd-e78d48d6c3d6%40googlegroups.com.

Parth Joshi

unread,
Nov 3, 2019, 1:58:43 PM11/3/19
to Django users
This mostly happens when your either django is intalled fully in global context or in virtual enviironment. Are you using virtual environment ?. If so, did you install django in the virtual env? Did you activate the virtualenv before proceeding ?
Reply all
Reply to author
Forward
0 new messages