I am working on this project and I am using VS-code editor. I already installed Django-embed-video using pip install and I have installed the embed_video in settings under INSTALLED_APPS. This is the directory where the embed_video is installed on my pc:
C:\Users\DEL.L\AppData\Local\Programs\Python\Python39\Lib\site-packages
.
but when I try to Import "embed_video.fields
I get error message that says "could not be resolved Pylance report Missing Imports
".
from django.db import models
from embed_video.fields import EmbedVideoField
# Create your models here.
class video(models.Model):
title = models.CharField(max_length=100)
added = models.DateTimeField(auto_now_add=True)
url = EmbedVideoField()
def __str__(self):
return str(self.title)
class Meta:
ordering = ['-added']