Answer the question
In order to leave comments, you need to log in
How to allow a file to be viewed?
I want to add my heroku project to wakemydyno.com and need to create a wakemydyno.txt file with any content.
I tried like this:
from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello_world():
return 'Hello, World!'
@app.route('/wakemydyno.txt')
def wakemydyno():
return 'For wakemydyno.com'
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question