Update django.md

main
Matt Huntington 5 years ago committed by GitHub
parent f3be90e7b3
commit 54658509ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -104,6 +104,8 @@ class Contact(models.Model):
age = models.IntegerField()
```
You'll notice that `models.CharField` takes params like so: `max_length=32`. This is just a way to specify parameters to a function by name, as opposed to order
Now let's set up a migration that will access our new `Contact` model and generate the necessary table in Postgres. In the terminal, run:
```

Loading…
Cancel
Save