Are you using version control like GIT? I save the migration folder with the __init__.py in GIT, nothing else, because al the migrations will be diferent in the diferent servers.
On Sat, Apr 25, 2015, 7:45 AM Filipe Ximenes <filipexime...@gmail.com> wrote: > You should keep all project migrations, they will be used to update the > database everytime a change is made. This applies to your local project, > the staging server (if you have one) and your production server. > If you are worried about having to many migrations, you can delete the > ones that were not applied in other machines, and generate a single one > with all the changes. > > About the database, it can be deleted, but you don't need to do this, your > database data should only exist in your computer and not in the Django > project you are deploying. > > On Sat, Apr 25, 2015 at 9:26 AM, Timothy W. Cook <t...@mlhim.org> wrote: > >> Django 1.8 Python 3.4 PostgreSQL 9.3 >> >> During development I am creating several migrations. It seems unnecessary >> to keep these since they only exist on my dev machine. >> Any data that I have created can be thrown away too. >> >> Is it safe to delete these migrations (and the database) before >> deploying to the next stage for testing by users? >> >> >> -- >> >> ============================================ >> Timothy Cook >> LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook >> MLHIM http://www.mlhim.org >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to django-users+unsubscr...@googlegroups.com. >> To post to this group, send email to django-users@googlegroups.com. >> Visit this group at http://groups.google.com/group/django-users. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-users/CA%2B%3DOU3WNb8XWUWLyN%2B7fq4u7Er3dczOqgBKLODdVnE3cLxOr-g%40mail.gmail.com >> <https://groups.google.com/d/msgid/django-users/CA%2B%3DOU3WNb8XWUWLyN%2B7fq4u7Er3dczOqgBKLODdVnE3cLxOr-g%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > > > *Filipe Ximenes*+55 (81) 8245-9204 > > *Vinta Software Studio*http://www.vinta.com.br > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CAA-QWB2RW_39b-8nm0Jm%2BAg9%2Bc%3DV0F4%3Dnm%3D%2B3DM7U-f3njV%3DNw%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAA-QWB2RW_39b-8nm0Jm%2BAg9%2Bc%3DV0F4%3Dnm%3D%2B3DM7U-f3njV%3DNw%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAAeX05H23hsbciqm%3DXn-PgcGpsA-ezL2Pnx4joP6rWJ%2Bkeirgw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.