From the course: AI Pair Programming with GitHub Copilot
Unlock this course with a free trial
Join today to access over 24,900 courses taught by industry experts.
Creating a data model with Copilot with Code Completion - Github Copilot Tutorial
From the course: AI Pair Programming with GitHub Copilot
Creating a data model with Copilot with Code Completion
- [Instructor] Let's go ahead and see how Copilot can help us code this project along. So we'll open the folder this project is in, which is Expense Calculator. And I'm going to go to expenses models.py, which is where I define my models. Then turn into database tables. So let's see how Copilot may help me code this. Let's go ahead and close the navigation tree, and I'll start by saying class expense and, okay, so it's giving me a suggestion of having a few fields. The first one is name, which is a CharField, a character field with a max length of 100. Then it actually knows to use DecimalField, which is pretty impressive. I know a few seasoned Django developers that would use a flow gear. Really impressive for the amount and the date. Now, if I wanted to look at alternatives, I can go to next and see a few others. Here, it adds Django class Meta. I can go to previous, I can open Copilot and see right now 10 options. I can close this because the original offer was not so bad. Now if…
Contents
-
-
-
-
-
(Locked)
What Copilot Chat means for project boilerplate7m 46s
-
(Locked)
Brainstorming with Copilot conversational interface1m 21s
-
(Locked)
Creating a data model with Copilot with Code Completion8m 40s
-
(Locked)
Implementing a REST API with Copilot9m 3s
-
(Locked)
Test strategy and implementation with Chat Interface7m 52s
-
(Locked)
-
-