Update django.md

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

@ -62,6 +62,12 @@ back in terminal run
python -m pip install psycopg2 python -m pip install psycopg2
``` ```
if that gives errors, run
```
python -m pip install psycopg2-binary
```
This installs a driver that allows Django to talk to Postgres. It's a bit like Mongoose. This installs a driver that allows Django to talk to Postgres. It's a bit like Mongoose.
Now we want to run a migration to set up the tables necessary to get django working. Migrations are python files that run SQL for you, so that you don't have to write it yourself Now we want to run a migration to set up the tables necessary to get django working. Migrations are python files that run SQL for you, so that you don't have to write it yourself

Loading…
Cancel
Save