Answer the question
In order to leave comments, you need to log in
Why are Django modules not being imported?
Created a virtual python environment and ran it. Visual Studio says it can't import modules. Here is the code:
from django.db import models
from django.contrib.auth import get_user_model
from django.contrib.contenttypes.models import ContentType
from django.contrib.contenttypes.fields import GenericForeignKey
from django.urls import reverse
from django.utils import timezone
python manage.py makemigrations
No changes detected
although the migration should be.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question