Developing Django app to be hosted locally with sensitive database data -


i developing django application intended hosted locally only, on laptop @ work. have been writing , testing code on own laptop , pushing code private bitbucket repository basic version control. ultimately, data in on deployment machine sensitive have been using dummy data on development machine (i cannot use sensitive data on development machine either - must reside on deployment machine).

i have mirrored application code onto deployment machine , manually inputted sensitive data on machine, have working application on target laptop identical on development machine, except contents of database different.

i need able continue developing new features on development machine - using dummy data - , i'd able push deployment machine via remote repository. problem have if use gitignore prevent pushing db.sqlite containing dummy data, databases not in sync, , new features may include changing or adding database schema - adding tables , fields , like.

i continue pull down application code deployment machine , manually make changes db.sqlite on deployment tedious , error prone.

i'm not entirely sure whether there purely git-based solution problem or django-based solution: unfortunately, i'm not expert in either, welcome views! thanks.

what want use database migrations. integral part of django of 1.7, seen here: https://docs.djangoproject.com/en/1.8/topics/migrations/

if using django version prior 1.7, want @ south: https://south.readthedocs.org/en/latest/


Comments

Popular posts from this blog

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -

python - Installing PyDev in eclipse is failed -