From the course: Full Stack Web Development with Flask

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Setting up the database

Setting up the database

- [Instructor] Setting up the database. In this video, we are going to set up the Mongo database by using this very simple step here inside a configuration file. And then next after that, we're going to import the MongoEngine from the flask_mongoengine module. And finally, we're going to initialize the database object and then going to pass the application to the init app function to get the database running and going. So let's go into the Visual Studio coding to get this all set up. Before we continue on, I remember from the previous video that there was an issue with the images, the footer and the header not showing up in the course view, so let's go ahead and fix that first. So I'm going to go into the command here and run the application. And let's go into the browser. So if you remember in the classes, you see that the logo is not showing and also the footer is not completely here. It's not properly styled. And…

Contents