django module not found

30 vues
Accéder directement au premier message non lu

Delvin Alexander

non lue,
24 janv. 2022, 08:59:1024/01/2022
à Django users
Hello,

I am new and just started to learn Django. I am attempting to create my first application and ofcourse progress to a website but i am having difficulty at the moment. here is whats going on:  

["Import "django.shortcut" could not be resolvedPylancereportMissingImports
Exception has occurred: ModuleNotFoundError
No module named 'django.shortcut'
File "C:\Users\delvi\django_project\blog\views.py", line 1, in <module> from django.shortcut import render]

I have tried looking online for an answer and still have yet to come to an answer that has resolved my issue. I even changed my interpreter, but this 1 problem still remains. May you someone please help me?



Lakshyaraj Dash X-D 25

non lue,
24 janv. 2022, 09:11:1724/01/2022
à django...@googlegroups.com
Try restarting your code editor or reinstall python.

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f931616a-652f-4ce0-9f8d-32435e9d6e04n%40googlegroups.com.

Lakshyaraj Dash X-D 25

non lue,
24 janv. 2022, 09:12:2424/01/2022
à django...@googlegroups.com
If you're using virtual environment then try creating a new virtual environment and install django again in your virtual environment.

On Mon, Jan 24, 2022, 19:28 'Delvin Alexander' via Django users <django...@googlegroups.com> wrote:

Kasper Laudrup

non lue,
24 janv. 2022, 09:16:0624/01/2022
à django...@googlegroups.com
On 24/01/2022 15.11, Lakshyaraj Dash X-D 25 wrote:
> Try restarting your code editor or reinstall python.
>

How would that change anything?

Kind regards,

Kasper Laudrup

Kasper Laudrup

non lue,
24 janv. 2022, 09:17:2124/01/2022
à django...@googlegroups.com
On 24/01/2022 05.18, 'Delvin Alexander' via Django users wrote:
>
> No module named 'django.shortcut'

Typo. It should be "django.shortcuts"

Kind regards,

Kasper Laudrup

Dawda Borje Kujabi

non lue,
24 janv. 2022, 14:32:3424/01/2022
à django...@googlegroups.com
Thank you, it worked. 

--
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.
Répondre à tous
Répondre à l'auteur
Transférer
0 nouveau message