If DB is local postgres, or mysql, export data on old machine and import on the other after migration. This may takes some experimentation to get keys importing properly.
If external and managed (say RDS), then migrations are not needed - the DB is already there and populated. The above export / import applies when migrating that though. On Monday, December 10, 2018 at 2:54:41 PM UTC-5, Swetank Subham Roy wrote: > > 1. Make requirement file let's say requirement.txt using pip freeze > command, which keep records of packages used in the project. > 2. Make a copy of project folder to the new machine. > 3. Create virtual environment on new machine. > 4. Activate and install package from requirement.txt file to the virtual > environment. > 5. Configure database and other settings in settings.py of project. > 6. Run makemigrations followed by migrate command. > 7. Run run server command. > > All done. > > On Tue 11 Dec, 2018, 12:43 AM computer engineering Forum < > robinso...@gmail.com <javascript:> wrote: > >> I want to change my pc but i fear i wont be able to access the projects >> >> -- >> 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...@googlegroups.com <javascript:>. >> To post to this group, send email to django...@googlegroups.com >> <javascript:>. >> Visit this group at https://groups.google.com/group/django-users. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-users/72f991a7-4024-4a37-80f5-5f5604c7a391%40googlegroups.com >> >> <https://groups.google.com/d/msgid/django-users/72f991a7-4024-4a37-80f5-5f5604c7a391%40googlegroups.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 https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/0d4d85db-76b7-4dc1-92c0-101758d59770%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.