Showcase Your Projects: Overview
In this section, you’re going to build out the
projects app so that it can show not just some HTML text but also the projects that you’re going to put in there.
Before you get started, make sure you’ve completed all of the tasks you needed to in the previous section. You’re going to learn about models and interactions with a database.
All right! Welcome to Part 4, where we are finally going to build out this
projects app so that it actually has this capacity to show, not just some HTML text, but actually the projects that you’re going to put in there.
Before we get started, make sure that you have all these things done already. So, this is what we went through in the previous sections. Make sure you have all the setup done, that you have your
portfolio Django project, and that you also have an app in there called
00:51 We’re going to add something in here, in this part that we haven’t gone over before, which is models and the interactions with the database. So far, we haven’t pulled anything from the database and haven’t written anything there, but in this section, we’re going to do that.
01:05 We’re going to store our projects in the database and we’re going to interact with the database using Django models. So, that’s what we’re going to start to look at, at the beginning. Later, we’re going to take a look at adding static files, so we’re going to have some images associated with the projects that we’re displaying.
01:23 We’re going to have some images associated with the projects that we’re displaying, we’re going to learn how to correctly connect these images so that they display, we’re going to use the Django shell to add our projects to the database. Later on, we’re going to look at a different way of doing that, but in here we’re going to do it using the Django shell.
01:43 Then, we’re going to go over the same process that we already went over before. We’re going to build out the routes that we need, we’re going to create the views that we need to pull from the database and send it forward to the template.
Then, we’re going to create our templates and make sure that it actually displays, add some Bootstrap style, and then we’ve finished up our
projects app and we’re going to just zoom over it and take a look at what we did. So again, this is the section where we’re going to get seriously serious.
Become a Member to join the conversation.