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.