# Flask login with dash app

**URL:** https://community.plotly.com/t/flask-login-with-dash-app/63403
**Category:** Dash Python
**Created:** [April 25, 2022, 11:58pm UTC](https://community.plotly.com/t/flask-login-with-dash-app/63403 "2022-04-25T23:58:22Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![sanae](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/sanae/32/22339_2.png) [@sanae](https://community.plotly.com/u/sanae)
#### Post date: [April 25, 2022, 11:58pm UTC](https://community.plotly.com/t/flask-login-with-dash-app/63403/1 "2022-04-25T23:58:22Z")

</div>

Hey Dash community wish that you’re fine

I Want to build a login page to my dash app , I wanna use Flask

If you have any ressources or some examples of login page with flask … please help !

Thank you 🤍

---

<div class="post-metadata">

### Author: ![stu](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/stu/32/18439_2.png) [@stu](https://community.plotly.com/u/stu)
#### Post date: [April 26, 2022, 11:36am UTC](https://community.plotly.com/t/flask-login-with-dash-app/63403/2 "2022-04-26T11:36:17Z")

</div>

> [@Flask Authentication with Dash pages](https://community.plotly.com/t/flask-authentication-with-dash-pages/62958/5):
>
> Hey @MarcooPoloo and @F2P Thanks for the pointer to the article about using flask-login with Dash - that was a helpful example. I adapted the code in the article so that it works with the dash-labs pages plug-in . You can find the code here: [GitHub - AnnMarieW/dash-flask-login: An example multi-page Dash app with Flask-Login integration](https://github.com/AnnMarieW/dash-flask-login) The original example had all the code in one file. I modified it so that all of the flask-login definitions and the callbacks that handle the login and log…

---

<div class="post-metadata">

### Author: ![sanae](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/sanae/32/22339_2.png) [@sanae](https://community.plotly.com/u/sanae)
#### Post date: [April 26, 2022, 12:38pm UTC](https://community.plotly.com/t/flask-login-with-dash-app/63403/3 "2022-04-26T12:38:27Z")

</div>

> [@Flask Authentication with Dash pages](https://community.plotly.com/t/flask-authentication-with-dash-pages/62958/5):
>
> ou’ll notice that there is no

thank yoiu sooo much for your help But It doesnt work for me , I didnt understand

 ![flask](https://us1.discourse-cdn.com/flex024/uploads/plot/original/3X/5/a/5ac63fd46a25a500a5917e0821322b33ea8e0db5.png)

My project have this structure , I want the user to enter the username and password in the login page then can see the content ( sidebar + pages)

---

<div class="post-metadata">

### Author: ![Sohibjon](https://avatars.discourse-cdn.com/v4/letter/s/4491bb/32.png) [@Sohibjon](https://community.plotly.com/u/Sohibjon)
#### Post date: [July 27, 2022, 12:29pm UTC](https://community.plotly.com/t/flask-login-with-dash-app/63403/4 "2022-07-27T12:29:11Z")

</div>

Hello, I did everything as it says here [GitHub - AnnMarieW/dash-flask-login: An example multi-page Dash app with Flask-Login integration](https://github.com/AnnMarieW/dash-flask-login) but the first time I run the program I get the following error

NotFound  
werkzeug.exceptions.NotFound: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.

but when the page is refreshed, the error disappears and the application starts working. Stuck on this error for a few days, any advice would be greatly appreciated

---

<div class="post-metadata">

### Author: ![adamschroeder](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/adamschroeder/32/17280_2.png) [@adamschroeder](https://community.plotly.com/u/adamschroeder)
#### Post date: [July 27, 2022, 1:13pm UTC](https://community.plotly.com/t/flask-login-with-dash-app/63403/5 "2022-07-27T13:13:35Z")

</div>

welcome to the community @Sohibjon

I had a similar problem in that it didn’t start for me. I think it’s a problem with my Windows machine. What machine are you using?

---

<div class="post-metadata">

### Author: ![Sohibjon](https://avatars.discourse-cdn.com/v4/letter/s/4491bb/32.png) [@Sohibjon](https://community.plotly.com/u/Sohibjon)
#### Post date: [July 27, 2022, 2:41pm UTC](https://community.plotly.com/t/flask-login-with-dash-app/63403/6 "2022-07-27T14:41:25Z")

</div>

I tried both on windows and on Linux, but the error does not disappear. Is there a chat on any social networks where you can ask questions and discuss everything related to Dash?

---

<div class="post-metadata">

### Author: ![adamschroeder](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/adamschroeder/32/17280_2.png) [@adamschroeder](https://community.plotly.com/u/adamschroeder)
#### Post date: [July 27, 2022, 2:50pm UTC](https://community.plotly.com/t/flask-login-with-dash-app/63403/7 "2022-07-27T14:50:05Z")

</div>

Hi @Sohibjon  
I am not aware of Chat rooms dedicated to general Dash questions. Many members in the Dash community use this Forum, so if they had an answer, it would probably appear here. If I hear of anything I’ll let you know.

---

<div class="post-metadata">

### Author: ![Sohibjon](https://avatars.discourse-cdn.com/v4/letter/s/4491bb/32.png) [@Sohibjon](https://community.plotly.com/u/Sohibjon)
#### Post date: [July 27, 2022, 2:56pm UTC](https://community.plotly.com/t/flask-login-with-dash-app/63403/8 "2022-07-27T14:56:03Z")

</div>

> [@Flask Authentication with Dash pages](https://community.plotly.com/t/flask-authentication-with-dash-pages/62958/8):
>
> @Sohibjon Sorry you were stuck on this for days slightly_frowning_face This is a new bug in Dash 2.6.0 and should be fixed in the next release. You won’t see this error in dash==2.5.1 Also, I made some updates to this app a couple days ago, so please be sure you are using the latest version.

the secret is revealed))
