current position:Home>Error occurred when verifying data migration

Error occurred when verifying data migration

2022-06-24 09:02:35CSDN Q & A

When associating data to users , Execute the migration command in the active virtual environment , It turned out that everything was going well . But in shell An error is reported when verifying whether the migration results meet the expectations .

(ll_env)F:\learning_log>python migrateOperations to perform:     Apply all migrations: admin, auth, contenttypes, learning_logs, sessionsRunning migrations:     Applying learning_logs.0003_topic_owner… OK

Verification time , Input :

from learning_logs.models import Topic

Report errors :

Traceback (most recent call last): _snip_django.core.exceptions.ImproperlyConfigured: Requested setting INSTALLED_APPS, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.

copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.

Random recommended