python - How to update my production database in a django/heroku project with a script -
i want update field in users table on django project hosted on heroku.
is there way can run script(if where?) using what?
that allows me update field in database? manually in django admin take way long there large number of users.
any advice appreciated.
i suggest update data in local make fixture, commit , push in heroku. load data using terminal
update data (locally)
make fixture (manage.py dumpdata)
commit , push heroku
login via terminal (heroku login)
load data (heroku run python manage.py loaddata .json)
Comments
Post a Comment