10
फ्लास्क में स्टेटिक फ़ाइलें - robot.txt, sitemap.xml (mod_wsgi)
क्या फ्लास्क की एप्लिकेशन रूट डायरेक्टरी में स्टैटिक फाइल्स को स्टोर करने का कोई चतुर उपाय है। robots.txt और sitemap.xml / में मिलने की उम्मीद है, इसलिए मेरा विचार उनके लिए मार्ग बनाने का था: @app.route('/sitemap.xml', methods=['GET']) def sitemap(): response = make_response(open('sitemap.xml').read()) response.headers["Content-type"] = "text/plain" return response अधिक सुविधाजनक कुछ …