From f7ec770cf263914f151e51578fc14e8b43f902cd Mon Sep 17 00:00:00 2001 From: Michal Petrik Date: Sun, 1 May 2022 12:27:08 +0200 Subject: [PATCH] Update 20_databases.md --- website/content/08_web_frameworks/20_databases.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/content/08_web_frameworks/20_databases.md b/website/content/08_web_frameworks/20_databases.md index 86034ee..a1af103 100644 --- a/website/content/08_web_frameworks/20_databases.md +++ b/website/content/08_web_frameworks/20_databases.md @@ -37,7 +37,7 @@ You can think of migrations as a map between user-defined models in code and dat In order for our custom model to be registered by Django, we'll need to do two things: 1. Register the app in our project, so that Django knows where to look for models -1. Run a command to make new migrations before running them, so that Django can create database scripts for our custom models. +2. Run a command to make new migrations before running them, so that Django can create database scripts for our custom models. First, let's register our app. @@ -153,4 +153,4 @@ Notice that this returns a `QuerySet`, which looks a lot like a list. In fact, w ### Advantages -The Django ORM features a lot of optimizations under the hood, and you don't need to know a lot about the internal workings of databases to start using them for your application. \ No newline at end of file +The Django ORM features a lot of optimizations under the hood, and you don't need to know a lot about the internal workings of databases to start using them for your application.