Skip to main content

Notice: Workspaces are undergoing maintenance and are temporarily unavailable.

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

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

Join the Treehouse affiliate program and earn 25% recurring commission! 🤑

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • 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
      • • Vibe Coding
  • Nyasha Julius Choga
    Nyasha Julius Choga
    13,872 Points

    Finally, create a function named initialize. Your initialize() function should connect to the database and then create t

    Posted September 16, 2020 12:29am by Nyasha Julius Choga
    Nyasha Julius Choga
    13,872 Points
    • Python
    • Using Databases in Python
    • Our Diary App
    • Initialize Database & Create Tables

    1 Answer

  • Emily Strobl
    Emily Strobl
    5,429 Points

    initialize part 3

    Posted November 1, 2019 5:48pm by Emily Strobl
    Emily Strobl
    5,429 Points
    • Python
    • Using Databases in Python
    • Our Diary App
    • Initialize Database & Create Tables

    1 Answer

  • Theo kootlogele
    Theo kootlogele
    5,620 Points

    challenge 3

    Posted October 14, 2019 9:11am by Theo kootlogele
    Theo kootlogele
    5,620 Points
    • Python
    • Using Databases in Python
    • Our Diary App
    • Initialize Database & Create Tables

    1 Answer

  • chen liu
    chen liu
    3,188 Points

    Couldn't find what's wrong with my code, why it said it looks like Task 1 is no longer passed

    Posted March 19, 2018 10:09am by chen liu
    chen liu
    3,188 Points
    • Python
    • Using Databases in Python
    • Our Diary App
    • Initialize Database & Create Tables

    1 Answer

  • Idan shami
    Idan shami
    13,251 Points

    initialize database create tables challenge[nevermind]

    Posted September 23, 2017 5:38pm by Idan shami
    Idan shami
    13,251 Points
    • Python
    • Using Databases in Python
    • Our Diary App
    • Initialize Database & Create Tables

    1 Answer

  • Vic A
    Vic A
    5,452 Points

    I see nothing wrong with this?

    Posted May 1, 2017 8:14pm by Vic A
    Vic A
    5,452 Points
    • Python
    • Using Databases in Python
    • Our Diary App
    • Initialize Database & Create Tables

    1 Answer

  • Lucas Navalesi
    Lucas Navalesi
    3,600 Points

    Using Databases in Python ( AND A FEW QUESTIONS MORE)

    Posted February 27, 2017 11:02pm by Lucas Navalesi
    Lucas Navalesi
    3,600 Points
    • Python
    • Using Databases in Python
    • Our Diary App
    • Initialize Database & Create Tables

    1 Answer

  • jamalbacchus
    PLUS
    jamalbacchus
    Courses Plus Student 6,664 Points

    Bummer! name 'initialize' is not defined. how this doesn't pass?

    Posted February 21, 2017 4:40am by jamalbacchus
    jamalbacchus
    Courses Plus Student 6,664 Points
    • Python
    • Using Databases in Python
    • Our Diary App
    • Initialize Database & Create Tables

    1 Answer

  • Munesh Raj Lakhey
    Munesh Raj Lakhey
    4,408 Points

    Do not understand the following tracebacke error in my diary.py

    Posted March 29, 2016 2:59pm by Munesh Raj Lakhey
    Munesh Raj Lakhey
    4,408 Points
    • Python
    • Using Databases in Python
    • Our Diary App
    • Initialize Database & Create Tables

    3 Answers

  • anhedonicblonde
    anhedonicblonde
    3,133 Points

    Finally, create a function named initialize. your initialize() function should connect to the database challenges..

    Posted February 12, 2016 7:03pm by anhedonicblonde
    anhedonicblonde
    3,133 Points
    • Python
    • Using Databases in Python
    • Our Diary App
    • Initialize Database & Create Tables

    1 Answer

  • MUZ140638 Racheal Bandirai
    MUZ140638 Racheal Bandirai
    2,742 Points

    whats wrong with this code

    Posted July 21, 2015 8:21am by MUZ140638 Racheal Bandirai
    MUZ140638 Racheal Bandirai
    2,742 Points
    • Python
    • Using Databases in Python
    • Our Diary App
    • Initialize Database & Create Tables

    1 Answer

  • Stephen Johnston
    Stephen Johnston
    1,378 Points

    name 'true' is not defined

    Posted June 18, 2015 5:12pm by Stephen Johnston
    Stephen Johnston
    1,378 Points
    • Python
    • Using Databases in Python
    • Our Diary App
    • Initialize Database & Create Tables

    1 Answer

  • Tara Edwards
    Tara Edwards
    6,521 Points

    Is anyone getting this error in Initialize Database Create Table?--solved

    Posted May 31, 2015 4:53pm by Tara Edwards
    Tara Edwards
    6,521 Points
    • Python
    • Using Databases in Python
    • Our Diary App
    • Initialize Database & Create Tables

    1 Answer

  • Wolverine .py
    Wolverine .py
    2,513 Points

    Create a function named initialize

    Posted May 10, 2015 8:42pm by Wolverine .py
    Wolverine .py
    2,513 Points
    • Python
    • Using Databases in Python
    • Our Diary App
    • Initialize Database & Create Tables

    2 Answers

  • Travis Bailey
    Travis Bailey
    13,675 Points

    [SOLVED] Stuck on step 3 with error: 'str' object has no attribute '_meta'

    Posted March 17, 2015 9:19pm by Travis Bailey
    Travis Bailey
    13,675 Points
    • Python
    • Using Databases in Python
    • Our Diary App
    • Initialize Database & Create Tables

    2 Answers

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

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

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

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord