# Dash with Flask templating

**URL:** <https://community.plotly.com/t/dash-with-flask-templating/6502>\
**Category:** Dash Python\
**Created:** [October 25, 2017, 4:34pm UTC](https://community.plotly.com/t/dash-with-flask-templating/6502 "2017-10-25T16:34:09Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![aspiringguru](https://avatars.discourse-cdn.com/v4/letter/a/7993a0/32.png) [@aspiringguru](https://community.plotly.com/u/aspiringguru)\
**Post date:** [November 18, 2019, 12:16am UTC](https://community.plotly.com/t/dash-with-flask-templating/6502/15 "2019-11-18T00:16:37Z")

</div>

I found this while searching for similar problem. turning off debug mode fixed my problem.

OS = ubuntu app in windows 10  
python 3.7.3  
pip install dash==1.6.1  
pip install dash-daq==0.3.1

print(" **name** = ", **name** )  
if **name** == ‘ **main** ’:  
print(“start server”)  
#app.run\_server(debug=True) # this causes errors - OSError: [Errno 8] Exec format error:  
app.run\_server(debug=False)

Appears related to this git issue below.

> <https://github.com/pallets/flask/issues/3133>
>
> Expected Behavior
> App run with debug mode raise OSError
> app = make\_app()
> celery = make\_celery(app)
> KafkaProducerExt(app)
> if \_\_name\_\_ == "\_\_main\_\_":
> app.run(debug=True)
> Actual Behavior
> App run with debug mode...

  
[https://flask.palletsprojects.com/en/1.0.x/cli/](https://flask.palletsprojects.com/en/1.0.x/cli/)

---

_[View the full topic](https://community.plotly.com/t/dash-with-flask-templating/6502)._
