i created a robots.txt , i've looking for how to include it in mywebsite.com/robots.txt and i found Flask
This is my code
from flask import Flask, request, send_from_directory
app = Flask('maksc', static_folder='/static')
@app.route('/robots.txt')
def static_from_root():
return send_from_directory(app.static_folder, request.path[1:])
Everything ok , but when i go to mywebsite.com/robots.txt it cant found the page , it triggers python "Page not found" displaying all the urls defined