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

🤑 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

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

  • 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
    • Showing results for:
    • Python
    • Using Databases in Python
    • Our Diary App
    • Initialize Database & Create Tables
    • Close
  • Nyasha Julius Choga
    Nyasha Julius Choga
    12,606 Points

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

    Posted on Sep 16, 2020 by Nyasha Julius Choga
    Nyasha Julius Choga
    12,606 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 on Nov 1, 2019 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 on Oct 14, 2019 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 on Mar 19, 2018 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 on Sep 23, 2017 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 on May 1, 2017 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 on Feb 27, 2017 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 on Feb 21, 2017 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 on Mar 29, 2016 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 on Feb 12, 2016 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 on Jul 21, 2015 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 on Jun 18, 2015 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 on May 31, 2015 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 on May 10, 2015 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 on Mar 17, 2015 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.

    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.