100π
β
I fixed it by going to File -> Preferences -> Project Structure
selecting the /django-project-name
in the tree and clicking sources
to add it.
π€Kit Sunde
1π
I had an issue with PyCharm not finding the templates folder for an existing Django project. So I created a test project and saw that the template folder setting is only added when setting up the project (it should be in project-root/.idea/project-name.iml)
Copying the same setting and changing the folder to the correct one fixed the issue for me.
π€victor n.
- [Django]-How can I find the union of two Django querysets?
- [Django]-New url format in Django 1.9
- [Django]-Django can' t load Module 'debug_toolbar': No module named 'debug_toolbar'
0π
Python requires an __init__.py
file in each directory that is a module or part of the project, in pycharm you can add extra paths via preferences
- [Django]-How to install libpq-fe.h?
- [Django]-Django models avoid duplicates
- [Django]-How to revert the last migration?
Source:stackexchange.com