Flask Assets bundles not compiling when run under uWSGI -


They usually run when I run the Flask app directly but run under UWGG compiles or replaces the address in the template. does not .

Edit:

Code: Property = Environment (App)

  .. if __name__ == "__main__": assets.register (YAMLLoader (OS, path.join (DIR, "assets.yml"). Load_bundles ()) If os.environ.get ("DEBUG_FLASK"): app.run () Other: app.run (debug = true)  

assets.yml:

  style_css: filter: less output: css / style.css content: - css / styled  
< / Div>

Usbuzzi exits with the app variable, to run the webpage and the script does not run as __men__ Is, therefore,

 < Code> assets.register (YAMLLoader (OS path.join (DIR, "assets.yml"). Load_bundles ())  

never found it

 I deleted from  if __name__ == "__main__":  

block. And it worked.


Comments