Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

378
Vistas
ModuleNotFoundError: No module named 'typing_extensions'

i am working in a blog site with django. my project urls.py code:

from django.contrib import admin
from django.urls import path
from.import views
urlpatterns = [
    path('admin/', admin.site.urls),
    path('',views.index,name="home"),
    path('login/',views.authlogin,name="login"),
    path('signup/',views.signup,name="signup"),
    path('contact/',views.contact,name="contact"),
    path('about/',views.about,name="about"),
    path('logout/',views.authlogout,name='logout'),
    path('dashboard/',views.dashboard,name='dashboard'),
    path('updatepost/<int:id>',views.update_post,name='updatepost'),
    path('addpost/',views.add_post,name='addpost'),
    path('delete/<int:id>',views.delete_post,name='deletepost'),
]

but it shows me

 File "C:\Users\ABU RAYHAN\Desktop\projects\miniblog\blog\urls.py", line 3, in <module>
    from.import views
  File "C:\Users\ABU RAYHAN\Desktop\projects\miniblog\blog\views.py", line 1, in <module>
    from typing_extensions import Required
ModuleNotFoundError: No module named 'typing_extensions'

i am new here pardon my mistake.

over 4 years ago · Santiago Trujillo
2 Respuestas
Responde la pregunta

0

There must be an import from typing-extensions module in blog\views.py file on line 1

in your code. Use this command to install it

pip install typing-extensions

after that this issue will be resolved.

over 4 years ago · Santiago Trujillo Denunciar

0

I had the same error.

Mine came from models.py

models.py

from typing_extensions import Required
from django.db import models


class nameOfModel(models.Model):
    nameOfField = models.CharField(max_length=255, Required=True)

Because I used Required=True, VSCode added automatically from typing_extensions import Required.

So I did this instead.

models.py

from django.db import models


class nameOfModel(models.Model):
    nameOfField = models.CharField(max_length=255, blank=False)
over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda