Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9119295
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T05:21:43+00:00 2026-06-17T05:21:43+00:00

I was playing with my configuration files, and then I saved something, and then

  • 0

I was playing with my configuration files, and then I saved something, and then suddenly none of my templates can be found in my localhost anymore.

It refuses to find index.html or any templates in my app/templates folder.

My app name was changed, but I changed it back, and it still doesn’t fix the error. I changed my basedir variable and secret_key does that have anything to do with it? Because I revert those changes and it still can’t find anything. It’s like magic, just stopped working all of a sudden. It seems to fail on dispatchingjinjaloader and get_source() function in jinja. StackTrace:

jinja2.exceptions.TemplateNotFound
return _render(ctx.app.jinja_env.get_or_select_template(template_name_or_list),
return self.get_template(template_name_or_list, parent, globals)
return self._load_template(name, self.make_globals(globals))
template = self.loader.load(self, name, globals)
source, filename, uptodate = self.get_source(environment, name)
raise TemplateNotFound(template)

Where does Jinja2 figure out where my templates folder is? How come it can’t find it anymore?

Where do you set the default folders of templates for jinja???

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T05:21:44+00:00Added an answer on June 17, 2026 at 5:21 am

    Ok so apparently, when I changed the name of the app… app_name = ‘app’, since my templates folder is in app/application/templates, I should have named my app_name = ‘application’ like it was before (I didn’t realize that name was returning application and not app).

    Apparently, jinja2 looks at your app_name when initializing Flask()… So odd and I didn’t see documentation for it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have check this site for solutions but i didn't find something that can
While playing with standard library i've found a strange difference between python2 and python3.
I have been playing around with Rake and Albacore, to see if I can
Program I'm making has a simple configuration file looking something like this. @overlays =
I'm playing around with .NET's configuration support (the ConfigurationManager class and related support classes).
So Eclipse was working windows installed some updates and restarted my computer then suddenly
I was playing around with how to use the Configuration Manager to read/write custom
I am trying to write a WCF service that can send mp3 files to
I'm writing a python library that has a per-user configuration file that can be
Playing around with Python - tkInter - Entry widget - when I use validatecommand

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.