0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

makemigrationsコマンド⇛No installed app with labelエラーの対処

Posted at

現象

makemigrationsコマンドをすると
No installed app with label
のエラーが出る

(myvenv) PS C:\Users\name\djangogirls> python manage.py makemigrations blog
No installed app with label 'blog'.

対処①

setting.pyの
installed appに追加する

INSTALLED_APPS = [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'blog.apps.BlogConfig', 
    #blogフォルダのapps.pyファイルに書かれているBlogConfigクラス
]

対処②

setting.pyをセーブ(Ctrl+S)してから実行

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?