Django Templates And Apps Not Loading
The title says most of it. I'm running Unittests.py in PyCharm on a tutorial and my templates folder is nested directly beneath my app folder (superlists/lists/templates/home.html)
Solution 1:
Your problem isn't related to template, but wrong test configuration in PyCharm.
It seems you are using Python tests -> Unittests
configuration for your tests, PyCharm provides a specific configuration for Django tests
(it automatically loads the right django settings).
So follow this steps to configure it:
- Go to the menu Run -> Edit Configurations...
- Click on the green plus icon
- Select Django tests
- Optionally enter the Django app name in the Target field (
lists
in your case)
If you have configured your django project and python interpreter in your PyCharm settings it should work.
Hope this helps.
Post a Comment for "Django Templates And Apps Not Loading"