Templates not found #357
-
Hi, In the auto generated component it says "Templates inside That's not happening for me. I have to manually add the "[your apps]/components" file path to the to DIRS config option in TEMPLATES or i get a "TemplateDoesNotExist" error. Am i missing something? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Interesting. The code that does the autodiscovery is here: https://github.com/EmilStenstrom/django-components/blob/master/django_components/__init__.py#L22 - specifically line 22. That file is run when that package is imported, typically as the package is added as to INSTALLED_APPS. Can you verify that that line is run in your case? |
Beta Was this translation helpful? Give feedback.
-
That line is definitely being run. Now i know that it "should" work I'll put aside some time to figure out what's going on. I'd imagine it's got to be something specific to my setup. |
Beta Was this translation helpful? Give feedback.
-
Please see #375 (comment) for how app-level components are imported. |
Beta Was this translation helpful? Give feedback.
Please see #375 (comment) for how app-level components are imported.