Getting Pycharm to run Django tests after moving the entire django source to a subfolder

Answered

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

3 comments
Comment actions Permalink

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?

0
Comment actions Permalink

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!!

0
Comment actions Permalink

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!

0

Please sign in to leave a comment.