• Home
  • Categories
  • Recent
  • Popular
  • Pricing
  • Contact us
  • Docs
  • Login
FusionAuth
  • Home
  • Categories
  • Recent
  • Popular
  • Pricing
  • Contact us
  • Docs
  • Login

Problem running Flask server - Dashboard page not found (404 error)

Scheduled Pinned Locked Moved
General Discussion
2
2
979
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E
    eric.vigiani
    last edited by 12 Jun 2023, 15:56

    I'm facing an issue while setting up FusionAuth with Flask. I followed the configuration steps to integrate FusionAuth into my Flask application, but I'm having difficulty accessing the dashboard page after starting the Flask server.

    Here is the configuration I'm using:

    I have a Flask application with the following routes:

    Main route (/) that redirects to the FusionAuth login page.
    Logout route (/logout) that clears the user session and redirects to the main page.
    Dashboard route (/dashboard) that should display the dashboard page with additional user information.
    I created the corresponding HTML pages (home.html, dashboard.html) and placed them in the 'templates' folder of my Flask project.

    I ensured that the routes are correctly defined in the code and that the URLs are properly specified in the HTML pages.

    I verified that all the necessary dependencies are correctly installed.

    After starting the Flask server, I can access the home page and successfully login using FusionAuth. However, when I try to access the dashboard page (/dashboard), I receive a 404 error indicating that the page was not found.

    in the flask documentation https://fusionauth.io/docs/v1/tech/tutorials/integrate-python-flask, i am trying to undestand this section.

    a6c91906-8079-4f61-a9ee-8ef3f897be1e-image.png

    1 Reply Last reply Reply Quote 0
    • D
      dan
      last edited by 18 Jul 2023, 11:37

      @eric-vigiani Sorry about that! We pull in the code for server.py from GitHub, and it looks like it is missing.

      We have a new, simpler python flask tutorial: https://fusionauth.io/docs/quickstarts/quickstart-python-flask-web

      which we just reviewed and tested.

      Sorry for the hassle!

      --
      FusionAuth - Auth for devs, built by devs.
      https://fusionauth.io

      1 Reply Last reply Reply Quote 0
      • First post
        Last post