maces / fastapi-htmx

Extension for FastAPI to make HTMX easier to use.
GNU Lesser General Public License v3.0
238 stars 9 forks source link

update the path #40

Closed anilmuppalla closed 6 months ago

anilmuppalla commented 7 months ago

It fails with

 raise TemplateNotFound(template)

you don't need to provide the root folder name in the path.

anilmuppalla commented 7 months ago

@maces

maces commented 7 months ago

Hi there, thanks for the PR.

For me and the tests it's failing in case i omit the root folder. How do you start your FastAPI app? I started the mentioned example with uvicorn my_app.api:app.

anilmuppalla commented 6 months ago

@maces ah you are right! I start my app uvicorn main:app I see that you use the my_app as the namespace. Perhaps would be good to add that in the docs?

anilmuppalla commented 6 months ago

I will close this PR