-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Heroku Deploy gives Template does Not Exist Error, but the Template worked fine on my Local Server #396
Comments
I'm trying to deploy an app to heroku for the first time following the tutorial by Corey Shaeffer. After allowing the correct host, I tried heroku open again in the command line and got an error message saying: " TemplateDoesNotExist at / However those templates do exist and worked in development. No idea what is going on, super new to this. Does anyone know what could be up? |
@dwfinley , did it work for you? 2019-04-18T20:44:53.917773+00:00 app[web.1]: at emitNone (events.js:86:13) |
hi, i am facing the similar issue as mentioned above. May i know what is the solution for that? |
I never figured it out.
…On Mon, Apr 20, 2020 at 8:37 AM wilsonad32 ***@***.***> wrote:
hi, i am facing the similar issue as mentioned above. May i know what is
the solution for that?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#396 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALJHNX7RCMC6CTJ42YEO7XLRNRTZ7ANCNFSM4G65XRIQ>
.
|
I finally figure it out. In my case, the letter 't' for 'templates' need to be capitalised. |
It's been so long! It was my first time trying to code, and I moved on. But
I do remember trying to that, and it didn't work. Glad you got it though!
…On Mon, Apr 20, 2020 at 7:31 PM wilsonad32 ***@***.***> wrote:
I finally figure it out. In my case, the letter 't' for 'templates' need
to be capitalised.
'DIRS': [os.path.join(BASE_DIR, 'Templates')],
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#396 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALJHNX6LOOJ5DX6ESALMYXTRNUAOXANCNFSM4G65XRIQ>
.
|
edit: if you are using Flask... app = Flask(__name__, template_folder='working-templates-folder/') add the template_folder argument above to have the app look into your 'blog' folder...
I was getting the same "jinja2.exceptions.TemplateNotFound: index.html" error raised from the flask/templating.py module, before I found this fix... also, you can set the "EXPLAIN_TEMPLATE_LOADING" variable in both my development and staging configs (in config.py file) to 'True' like this:
to see more debug output of where the app is looking for your template files... |
so is there a solution? |
https://checkonce.herokuapp.com/ give me a solution for template dose not exist |
No description provided.
The text was updated successfully, but these errors were encountered: