Update Django postgresql database in Digital Ocean Droplet? -


this question might out of site's context, please redirect me right site if that's case. anyway, have django installed in digital ocean droplet, moved apps filezilla server, setup correct static folders , working fine except database. now, have created postgresql database on computer , i've added data, have no idea how can move them server database. don't know databases, i'm not ever sure database located. there way of automatic database deployment, or perhaps way find , move filezilla server?

use ssh connect droplet, proceed postgresql-server installation. @ install guides done.

your database located in droplet, you'll configure django settings.py connect local database @ 127.0.0.1.

you can have @ guide ubuntu on digitalocean.

all have configuring db using django , migrating app.

django provides easy way export/import db data :

python manage.py dumpdata generate output, on linux redirect > fixture.json. on offline installation.

then, manage put file on server, , load following command : python loaddata fixture. work, don't forget synchronize both database schemas migrations.


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -