[Fixed]-"Cannot assign / must be an instance" error when creating a model instance from a CSV (ForeignKey related) 16 December 2023 by thecoderscamp.com 1👍 ✅ are you importing User? from django.contrib.auth.models import User 👤RichSmith Cant install mod_wsgi in Django on Mac Source:stackexchange.com