0

I'm trying to create a new instance of one of my Django models. When I do it in my python shell it works fine and the object is indeed created.

However, when I do it in one of my custom management commands' script using the exact same code, there is no error but the object is never created!!

Any ideas?

Giordano
  • 5,422
  • 3
  • 33
  • 49
apple_pie
  • 329
  • 2
  • 13

1 Answers1

0

ok, solved it.

I used a keyboard interrupt to exit the script, and I'm guessing the script needs to exit correctly in order to finish the db transaction. I let it exit on itself and the objects were created.

apple_pie
  • 329
  • 2
  • 13