How to run a file that uses django models (large block of code) in Pycharm
If your site loads, you should put the import the models into one of your Django views.
In a view you can do whatever you like with the models.
So I have a chunk of code that declares some classes, creates data, uses django to actually save them to the database. My question is how do I actually execute it?
I am using PyCharm and have the file open. But I have no clue how to actually execute it. I can execute line by line in Django Console, but if it's more than that it can't handle the indentation. 
The project itself runs fine (127.0.0.1 loads my page). How can I accomplish this?
I am sorry if this a completely obvious answer, I've been struggling with this for a bit.