django installation

19 views
Skip to first unread message

David Moya

unread,
Jun 11, 2014, 1:40:01 AM6/11/14
to django...@googlegroups.com
So i supposedly installed Django because on the terminal, after going through the whole process of installation, it says "Successfully installed Django". However, when i try to run the command: python -c "import django; print(django.get_version())" I get: ImportError: No module named django. What should I do?

Mike Dewhirst

unread,
Jun 11, 2014, 3:21:53 AM6/11/14
to django...@googlegroups.com
Start python

>>> import django
>>> django.get_version()
'1.5.8'
>>>

... in my case

Mike


>
> --
> 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
> <mailto:django-users...@googlegroups.com>.
> To post to this group, send email to django...@googlegroups.com
> <mailto:django...@googlegroups.com>.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/b32fee81-8061-49bd-b66e-433f5480eb13%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/b32fee81-8061-49bd-b66e-433f5480eb13%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

Pavithra M H

unread,
Jun 11, 2014, 4:03:15 AM6/11/14
to django...@googlegroups.com
hi, first of all you should create an virtual environment and then u have to install django, the detailed procedure is given here "
http://www.openbookproject.net/courses/webappdev/units/webappdev2/resources/django_virtualenv.html"

Sreenivas Reddy T

unread,
Jun 11, 2014, 6:00:38 AM6/11/14
to django...@googlegroups.com

There is no need to install virtualenv to install Django.

--
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.

Daniel Roseman

unread,
Jun 11, 2014, 6:23:51 AM6/11/14
to django...@googlegroups.com
On Wednesday, 11 June 2014 11:00:38 UTC+1, Srinivas Reddy T wrote:

There is no need to install virtualenv to install Django.

While this is technically correct, it is not good advice to give to a newbie. Experienced developers should be encouraging best practice among newcomers, and to be honest there really isn't a good reason *not* to use virtualenv.
--
DR.

Bill Freeman

unread,
Jun 11, 2014, 10:53:37 AM6/11/14
to django-users
Still, the OP's command should have worked.  The most likely problem is that Django was installed to a different python than the one  he gets when he types "python" at the shell.  He does not say how he installed Django, so it is hard to advise.


--
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 http://groups.google.com/group/django-users.
Reply all
Reply to author
Forward
0 new messages