πŸ€‘ Join the Treehouse affiliate program and earn 25% recurring commission!

New No-Code Track! πŸš€start learning today!

🌟 Dreaming of a bright future? πŸŽ“ Ask about the Treehouse Scholarship program! πŸš€

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
  • S M Tasfiqul Asif
    S M Tasfiqul Asif
    11,514 Points

    can someone please tell me why it is showing an error?

    Posted April 6, 2023 10:31am by S M Tasfiqul Asif
    S M Tasfiqul Asif
    11,514 Points
    • Python
    • Flask with SQLAlchemy Basics
    • Creating a Basic Website with Flask
    • Create a Flask App

    1 Answer

  • Zinia Khondoker
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Zinia Khondoker
    Python Development Techdegree Graduate 10,451 Points

    Create a homepage route located at the root route '/'. The function should be called index. Inside the function, return

    Posted February 14, 2023 5:38pm by Zinia Khondoker
    .a{fill-rule:evenodd;}techdegree seal-36
    Zinia Khondoker
    Python Development Techdegree Graduate 10,451 Points
    • Python
    • Flask with SQLAlchemy Basics
    • Creating a Basic Website with Flask
    • Create a Flask App

    1 Answer

  • Zack Guignardi
    Zack Guignardi
    4,277 Points

    Flask with SQLAlchemy Basics Challenge Task 3 of 3

    Posted November 18, 2022 2:58pm by Zack Guignardi
    Zack Guignardi
    4,277 Points
    • Python
    • Flask with SQLAlchemy Basics
    • Creating a Basic Website with Flask
    • Create a Flask App

    1 Answer

  • Travers Geoffray
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Travers Geoffray
    Python Development Techdegree Graduate 26,967 Points

    Says "don't forget a couple of empty lines before the dunder main." What am I doing wrong here?

    Posted January 14, 2022 4:10pm by Travers Geoffray
    .a{fill-rule:evenodd;}techdegree seal-36
    Travers Geoffray
    Python Development Techdegree Graduate 26,967 Points
    • Python
    • Flask with SQLAlchemy Basics
    • Creating a Basic Website with Flask
    • Create a Flask App

    1 Answer

  • jmac pd
    jmac pd
    11,490 Points

    Flask SQLAlchemy -- "you should have __main__ at the end of your code"?

    Posted January 14, 2022 2:53pm by jmac pd
    jmac pd
    11,490 Points
    • Python
    • Flask with SQLAlchemy Basics
    • Creating a Basic Website with Flask
    • Create a Flask App

    1 Answer

  • Nataliya Fateeva
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Nataliya Fateeva
    Python Development Techdegree Student 4,858 Points

    Another issue with objective

    Posted September 16, 2021 2:19pm by Nataliya Fateeva
    .a{fill-rule:evenodd;}techdegree
    Nataliya Fateeva
    Python Development Techdegree Student 4,858 Points
    • Python
    • Flask with SQLAlchemy Basics
    • Creating a Basic Website with Flask
    • Create a Flask App

    1 Answer

  • Nataliya Fateeva
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Nataliya Fateeva
    Python Development Techdegree Student 4,858 Points

    Looks like issue in challenge task?

    Posted September 16, 2021 2:07pm by Nataliya Fateeva
    .a{fill-rule:evenodd;}techdegree
    Nataliya Fateeva
    Python Development Techdegree Student 4,858 Points
    • Python
    • Flask with SQLAlchemy Basics
    • Creating a Basic Website with Flask
    • Create a Flask App

    1 Answer

  • Noor Hafiza Binti Ibrahim
    Noor Hafiza Binti Ibrahim
    11,712 Points

    Why? I can’t pass the challenge. I keep getting Bummer: You should have a dunder main at the end of your file.

    Posted July 2, 2021 12:03pm by Noor Hafiza Binti Ibrahim
    Noor Hafiza Binti Ibrahim
    11,712 Points
    • Python
    • Flask with SQLAlchemy Basics
    • Creating a Basic Website with Flask
    • Create a Flask App

    2 Answers

  • Danielle Murray
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Danielle Murray
    Python Development Techdegree Graduate 7,755 Points

    Hi could you please help me fix this error i am getting - Make sure to place your route after your app variable.

    Posted June 9, 2021 4:22am by Danielle Murray
    .a{fill-rule:evenodd;}techdegree seal-36
    Danielle Murray
    Python Development Techdegree Graduate 7,755 Points
    • Python
    • Flask with SQLAlchemy Basics
    • Creating a Basic Website with Flask
    • Create a Flask App

    1 Answer

  • Anthony Piscocama
    Anthony Piscocama
    5,704 Points

    Bummer: You should have a dunder main at the end of your file.

    Posted April 24, 2021 12:21pm by Anthony Piscocama
    Anthony Piscocama
    5,704 Points
    • Python
    • Flask with SQLAlchemy Basics
    • Creating a Basic Website with Flask
    • Create a Flask App

    1 Answer

  • Hanwen Zhang
    Hanwen Zhang
    20,084 Points

    Why my code is incorrect? Please help. Flask for Python

    Posted April 23, 2021 2:57am by Hanwen Zhang
    Hanwen Zhang
    20,084 Points
    • Python
    • Flask with SQLAlchemy Basics
    • Creating a Basic Website with Flask
    • Create a Flask App

    1 Answer

  • Mat Clark
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Mat Clark
    Python Development Techdegree Student 4,369 Points

    Possible bug?

    Posted April 8, 2021 5:19pm by Mat Clark
    .a{fill-rule:evenodd;}techdegree
    Mat Clark
    Python Development Techdegree Student 4,369 Points
    • Python
    • Flask with SQLAlchemy Basics
    • Creating a Basic Website with Flask
    • Create a Flask App

    1 Answer

  • Luis Roca
    Luis Roca
    2,013 Points

    What's wrong with my view (app.route) . I don't understand why it isn't running the third task properly. Thanks!

    Posted February 26, 2021 11:51pm by Luis Roca
    Luis Roca
    2,013 Points
    • Python
    • Flask with SQLAlchemy Basics
    • Creating a Basic Website with Flask
    • Create a Flask App

    1 Answer

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

    Treehouse

  • About
  • Blog
  • Careers
  • Community
  • Stories
  • Shop
  • Contact
  • Gift Card

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.