upgrading_from_05.rst 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. =========================
  2. Upgrading from Misago 0.5
  3. =========================
  4. Misago 0.6 comes with special utility that allows those upgrading from Misago 0.5 to move their data to new site. This utility, named ``datamover``, provides set of management commands allowing you to move data over.
  5. Preparing for move
  6. ==================
  7. To move your data to new site, you'll need to first install Misago 0.6, and then tell mover how to access your old data.
  8. Database
  9. --------
  10. In your site's ``settings.py`` find ``DATABASES`` setting, and add connection named ``misago05``::
  11. DATABASES = {
  12. 'default': {
  13. # new database used by Misago
  14. },
  15. 'misago05': {
  16. 'ENGINE': 'django.db.backends.mysql',
  17. 'NAME': 'your_misago_05_database_name',
  18. 'USER': 'your_misago_05_database_user',
  19. 'PASSWORD': 'your_misago_05_database_password',
  20. 'HOST': 'localhost',
  21. 'PORT': '3306',
  22. }
  23. }
  24. User uploads
  25. ------------
  26. You'll actually won't need all of your old forum's files for move, only attachments and media directories. To tell data mover where it can find those directories, add ``MISAGO_OLD_FORUM`` setting somewhere in your ``settings.py``, just like in example below::
  27. MISAGO_OLD_FORUM = {
  28. 'ATTACHMENTS': '/home/somewhere/myoldmisago/attachments/',
  29. 'MEDIA': '/home/somewhere/myoldmisago/media/',
  30. }
  31. Moving forum configuration
  32. --------------------------
  33. To move configuration over to new forum, run ``python manage.py movesettings`` command.
  34. .. note::
  35. Some settings have been moved from admin to configuration file, or removed. Those will not be migrated. Please consult :doc:`configuration reference </developers/settings>`.