“No installed app with label 'admin'” in empty Django 2.2 project

后端 未结 2 816
猫巷女王i
猫巷女王i 2020-12-10 06:53

I am starting a new project in Django 2.2 using the same commands as I always do:

python3 -m venv django-env
. django-env/bin/activate
pip install django
dja         


        
2条回答
  •  抹茶落季
    2020-12-10 07:46

    This usually happens if you were previously working in an older version python/django, and now you try to run the app in newer version. To fix this, migrate and apply migrations, install any modules found missing. To avoid these kind of issues, use container like docker.

提交回复
热议问题