Error following django's documentation 2.0

22 views
Skip to first unread message

FernandoJMM

unread,
Jan 5, 2018, 7:55:20 PM1/5/18
to Django users
Hello everyone,

I'm learning django. I am in the official documentation of django link:


After creating the model and doing the migrate I go to the section called Enjoy the free API to test in the python terminal and I get an error when executing the import, it says that it can not find the module.

The only difference with the documentation is that I am executing it from a virtualenv.

it can be fixed ?

Thank you all

Matemática A3K

unread,
Jan 6, 2018, 1:51:01 AM1/6/18
to django...@googlegroups.com
On Fri, Jan 5, 2018 at 8:32 PM, FernandoJMM <fern...@lagunadeduero.com> wrote:
Hello everyone,

I'm learning django. I am in the official documentation of django link:


After creating the model and doing the migrate I go to the section called Enjoy the free API to test in the python terminal

Did you get to that python terminal by "python manage.py shell" on the base directory of your project?
 
and I get an error when executing the import, it says that it can not find the module.

The only difference with the documentation is that I am executing it from a virtualenv.

it can be fixed ?

I think so :)
 

Thank you all

--
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...@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/c9941c85-2a42-439f-8999-856507f5f74d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

FernandoJMM

unread,
Jan 9, 2018, 5:29:23 AM1/9/18
to Django users
Good morning,

I think the error comes from making modifications to django's settings.
I started the project again and now the django shell works.

Thanks for your interest !!!
Fernando

El sábado, 6 de enero de 2018, 7:51:01 (UTC+1), Matemática A3K escribió:
On Fri, Jan 5, 2018 at 8:32 PM, FernandoJMM <fern...@lagunadeduero.com> wrote:
Hello everyone,

I'm learning django. I am in the official documentation of django link:


After creating the model and doing the migrate I go to the section called Enjoy the free API to test in the python terminal

Did you get to that python terminal by "python manage.py shell" on the base directory of your project?
 
and I get an error when executing the import, it says that it can not find the module.

The only difference with the documentation is that I am executing it from a virtualenv.

it can be fixed ?

I think so :)
 

Thank you all

--
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.
Reply all
Reply to author
Forward
0 new messages