Getting Pycharm to run Django tests after moving the entire django source to a subfolder
已回答
Hi,
How do I get pycharm to run tests if my django project is no in the /backend folder instead of the /-folder of my project?
Nander
请先登录再写评论。
Hi N E F Voortman! Do you have correct settings in Settings | Languages & Frameworks | Django? Do you have some errors running tests with new layout?
Nevermind, I' m sleepy. It's 23:17 here, perhaps I shouldn' t be programming.. Ah well, it's not like I'm refactoring a huge project...
Thanks for the help, I needed to both set the path thing, and the settings.py setting manually, because the folder is different from normal.
Thanks for the support!!
After update Django config from Preferences -> Languages & Frameworks -> Django. Right click on subfolder (which contains manage.py file), set Directory as Source Root.
You're done!