I'm currently developing a web site in django. I have created a virtualenv within which my pip installs exist. I am versioning my site in source control. The /lib folder is ignored in VCS, where the pip-installed files are kept. But I now have a django app that i have installed via pip that contains database information. So now part of my migrations are not under version control.
I have not deployed any staging or production environment, and I'm the sole dev. But I'll be doing deployment work soon™. And I need to get these migrations under VCS as soon as I can.
My question is how do I version control migrations (and potentially other things) for 3rd-party django apps? I could potentially:
- version just the migrations folder in the virtualenv.
- version the entire virtualenv? The /lib folder is 36mb...not anything insane right now.
- something else? I'm newish to python and so I'm not exactly sure how this works.