Open dwfinley opened 5 years ago
@dwfinley , did it work for you? I just tried and seeing below error in Heroku web logs:
2019-04-18T20:44:53.917773+00:00 app[web.1]: at emitNone (events.js:86:13) 2019-04-18T20:44:53.917774+00:00 app[web.1]: at TLSSocket.emit (events.js:185:7) 2019-04-18T20:44:53.917776+00:00 app[web.1]: at TLSSocket._finishInit (_tls_wrap.js:610:8) 2019-04-18T20:44:53.917777+00:00 app[web.1]: at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:440:38) 2019-04-18T20:44:53.967693+00:00 heroku[web.1]: Process exited with status 1
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 notifications@github.com 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 https://github.com/rauchg/slackin/issues/396#issuecomment-616632841, 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. 'DIRS': [os.path.join(BASE_DIR, 'Templates')],
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 notifications@github.com 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 https://github.com/rauchg/slackin/issues/396#issuecomment-616913839, 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...
app = Flask(__name__, template_folder='blog/'
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:
class StagingConfig(Config):
DEVELOPMENT = True
DEBUG = True
ENV = "Staging"
EXPLAIN_TEMPLATE_LOADING = True
class DevelopmentConfig(Config):
DEVELOPMENT = True
DEBUG = True
ENV = "Development"
EXPLAIN_TEMPLATE_LOADING = True
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
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 / blog/home.html, blog/post_list.html "
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?