django - settings.py seems to load multiple times?
django, pycharm
Solution
If you print out the thread ID within settings.py, you will see that settings.py is actually being loaded on two different threads.
See this stackoverflow response and this article for more info.
Problem
EDIT I miscounted - it is printed out twice, not four times. I put this in my `settings.py` ``` print 'ola!' ``` and on startup "ola" is printed out twice! This seems like something is wrong with my pycharm django project ... any ideas why this would happen? It isn't in a loop or anything (that i'm aware of, anyway) cheers! YAY The user known only as "rohit", as per the comments, has determined that a solution can be found here: https://stackoverflow.com/a/2110584/1061426 ~ see the comment about disabling reloading. CAUTION I don't have my Django code up and about now, so I don't know what the noload will do. Good luck, soldiers.