I can't start django

219 views
Skip to first unread message

epic christ

unread,
Nov 16, 2018, 5:17:27 PM11/16/18
to Django users

(myvenv) epiczed00s-MacBook-Air:mysite epiczed00$ python3 manage.py runserver

Traceback (most recent call last):

  File "manage.py", line 8, in <module>

    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 "manage.py", line 14, in <module>

    ) 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?

(myvenv) epiczed00s-MacBook-Air:mysite epiczed00$ 





I get this error, and as you can see I already have virtual enviroment. Django worked before but recently this appeared to me. I don't know what this means, I testted everything. 

Akash Purandare

unread,
Nov 16, 2018, 5:57:43 PM11/16/18
to Django users
Can you show the output of pip freeze in your virtual environment?

Ansh Srivastava

unread,
Nov 16, 2018, 7:59:55 PM11/16/18
to django...@googlegroups.com
I think you forgot to mention the following:
pip install django==2.1.3


Mailtrack Sender notified by
Mailtrack 11/17/18, 1:27:53 AM

On Fri, Nov 16, 2018 at 11:27 PM Akash Purandare <akash...@gmail.com> wrote:
Can you show the output of pip freeze in your virtual 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 post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/72a96826-4c1c-474b-afc7-2facf4a1e338%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Аккозов Медер

unread,
Nov 17, 2018, 3:37:29 AM11/17/18
to django...@googlegroups.com
first you are inside the folder menega.py.
secondly, you need to write python menega.py runserver but not python 3


пт, 16 нояб. 2018 г., 23:17 epic christ epicz...@gmail.com:
--
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 post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

epic christ

unread,
Nov 17, 2018, 7:20:48 PM11/17/18
to django...@googlegroups.com

epic christ

unread,
Nov 17, 2018, 7:21:03 PM11/17/18
to django...@googlegroups.com
what do you mean? 

Den fre 16 nov. 2018 kl 18:58 skrev Akash Purandare <akash...@gmail.com>:
Can you show the output of pip freeze in your virtual environment?

Ryan Gedwill

unread,
Nov 17, 2018, 9:14:44 PM11/17/18
to django...@googlegroups.com
Are you using a virtual environment? What version of python are you using?

Try typing in the command line:
python

Then when the shell opens up, put
import django

Press enter. What does it say?

Sent from my iPhone
Reply all
Reply to author
Forward
0 new messages