M
M
MDPanf2020-10-15 22:21:36
Django
MDPanf, 2020-10-15 22:21:36

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

5f88a046cf608252237762.png
When you try to execute the command
python manage.py makemigrations
Says No changes detectedalthough the migration should be.5f88a139696f2404154755.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question