Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. Guide of Upgrade from 1.x to 2.x
  2. ---------------------------------------
  3. If you have Pinry installed by srouce code, it's easy for
  4. you to upgrade from 1.x to 2.x, just follow these steps.
  5. At first you should checkout the old branch.
  6. ```bash
  7. # it is not required if you are currently the old version
  8. git checkout 1.x version
  9. # install and enter the shell
  10. pipenv install
  11. pipenv shell
  12. # Upgrade to lastest version of django-images
  13. pip install -U git+https://github.com/mirumee/django-images.git
  14. python manage.py makemigrations
  15. python manage.py migrate --fake-initial
  16. # clean action
  17. pip uninstall django-images
  18. # It will ask if you want to remove an extra file named like
  19. # Uninstalling django-images-0.4.3:
  20. # -------------------------------------------
  21. # Would remove:
  22. # /path_to_your_python_packages/django_images-0.4.3.dist-info/*
  23. # /path_to_your_python_packages/django_images/*
  24. # Would not remove (might be manually added):
  25. # /path_to_your_python_packages/django_images/migrations/0002_auto_20180826_0845.py
  26. # Proceed (y/n)?
  27. # ------------------------------------------
  28. # Please remove the file it by hand if possible (this operation is optional)
  29. rm /path_to_your_python_packages/django_images/migrations/0002_auto_20180826_0845.py
  30. # exit pipenv's virtualenv
  31. exit
  32. ```
  33. Ant then you should checkout to version 2.x (our current master)
  34. ```bash
  35. # If you are not the lastest version ,just call "git pull --rebase"
  36. # to upgrade to lastest version of Pinry (2.x)
  37. git checkout master
  38. make install
  39. make migrate
  40. # Try to run as development server
  41. make serve
  42. # If no error occurs, just enjoy it
  43. ```
  44. And now, you can just run your server in the way you like.