Created Ojects Are Not Shown Through Cmd Django Python June 16, 2023 Post a Comment from sabin.models import Task >>> Task.objects.all() >>> t=Task(title='dhiraj') t=Task(title='dhiraj') t.save() error says when try to save TSolution 1: Use save(), it is a method, not an attribute.t=Task(title="dhiraj") t.save() CopyAlso, before this, you must run:>py manage.py makemigrations>py manage.py migrateCopyAnd also, to get all objects, it is Task.objects.all() Share Post a Comment for "Created Ojects Are Not Shown Through Cmd Django Python"
Post a Comment for "Created Ojects Are Not Shown Through Cmd Django Python"