Tuesday, June 19, 2018

Re: Installation issue

Hello 

Make sure you can import django from python shell

And check the python version you are using with you python files 
You can use the full path to python 
But that is not fun to do everytime

For more check here

https://stackoverflow.com/questions/312549/no-module-named-django-core

Le mar. 19 juin 2018 19:36, Dhruv Mahajan <dhruvrmahajan@gmail.com> a écrit :
Hi

I just started working on Django. I am unable to get django-admin command to work properly. Initially I was getting an error that django-admin could not be located. I created a symlink for the same in the /use/local/bin folder. Now I am getting the following error:
File "/usr/local/bin/django-admin", line 2, in <module>
  from django.core import management
ImportError: No module named django.core

My setup is as follows:
I am running ubuntu 18.04 on a virtualbox on a Macbook Pro. I have installed virtualenv using apt get. I am using python 3.6.5 and Django 2.0.6. I have installed django using pip3. It has been installed in the folder ~/.local/lib/python3.6/site-packages/. Symlink for django-admin.py was created in /usr/local/bin/

Kindly help me here. 

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@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/9bee777f-7550-4d25-8c03-3702e3b83bab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Le 19 juin 2018 19:36, "Dhruv Mahajan" <dhruvrmahajan@gmail.com> a écrit :
Hi

I just started working on Django. I am unable to get django-admin command to work properly. Initially I was getting an error that django-admin could not be located. I created a symlink for the same in the /use/local/bin folder. Now I am getting the following error:
File "/usr/local/bin/django-admin", line 2, in <module>
  from django.core import management
ImportError: No module named django.core

My setup is as follows:
I am running ubuntu 18.04 on a virtualbox on a Macbook Pro. I have installed virtualenv using apt get. I am using python 3.6.5 and Django 2.0.6. I have installed django using pip3. It has been installed in the folder ~/.local/lib/python3.6/site-packages/. Symlink for django-admin.py was created in /usr/local/bin/

Kindly help me here. 

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@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/9bee777f-7550-4d25-8c03-3702e3b83bab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@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/CAAq3G-Gw_2t%3Dc-LCn%3DnQLVvT9h2XWuEE9NMhbP_N34_RapQO5w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment