Error following django's documentation 2.0

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Error following django's documentation 2.0

FernandoJMM
Hello everyone,

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

https://docs.djangoproject.com/en/2.0/intro/overview/

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

--
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 [hidden email].
To post to this group, send email to [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|

Re: Error following django's documentation 2.0

Matemática A3K


On Fri, Jan 5, 2018 at 8:32 PM, FernandoJMM <[hidden email]> 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 [hidden email].
To post to this group, send email to [hidden email].
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.

--
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 [hidden email].
To post to this group, send email to [hidden email].
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/CA%2BFDnhK6FjKY3dgv%3Dv5JnFF68FZawM7j1HWYPCWQA0S1OdL_%3DQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Error following django's documentation 2.0

FernandoJMM
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 <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="n_zo5A7ABQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">fern...@...> wrote:
Hello everyone,

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

<a href="https://docs.djangoproject.com/en/2.0/intro/overview/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fdocs.djangoproject.com%2Fen%2F2.0%2Fintro%2Foverview%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFHZyjymrE-QVO0cS8OR7F-vg8zMQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fdocs.djangoproject.com%2Fen%2F2.0%2Fintro%2Foverview%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFHZyjymrE-QVO0cS8OR7F-vg8zMQ&#39;;return true;">https://docs.djangoproject.com/en/2.0/intro/overview/

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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="n_zo5A7ABQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">django-users...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="n_zo5A7ABQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">django...@....
Visit this group at <a href="https://groups.google.com/group/django-users" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/group/django-users&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/group/django-users&#39;;return true;">https://groups.google.com/group/django-users.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/django-users/c9941c85-2a42-439f-8999-856507f5f74d%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/django-users/c9941c85-2a42-439f-8999-856507f5f74d%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/django-users/c9941c85-2a42-439f-8999-856507f5f74d%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/django-users/c9941c85-2a42-439f-8999-856507f5f74d%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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 [hidden email].
To post to this group, send email to [hidden email].
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/d2302294-e824-4796-afed-93f023bdb2a8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.