silverapp / silver

Automated billing and payments for Django with a REST API
https://www.presslabs.com/code/silver/
Other
301 stars 80 forks source link

question about upgrade Django 2 #628

Closed iris9112 closed 5 years ago

iris9112 commented 5 years ago

Hi guys!! I read in the issue #617

"Feel free to reopen if you feel like adding Django 2.x support"

I am thinking use Silver for a project, but I need use Django 2 (By request of the client). I see too some issues about this (issue #607). My question is about if anyone is working in this process (version migration). And respect to:

"We should also investigate how hard it would be to support Django 1.11 and Django 2.x versions at the same time, as there might be some users still depending on Django 1.11."

I will try to do too. @bogdanpetrea Let me know please.

bogdanpetrea commented 5 years ago

Hi @iris9112,

I started adding support for Django 2.x, but I had to put it on hold for a while... at least until I manage to find some spare work time.

I pushed the branch if you want to have a look: https://github.com/silverapp/silver/pull/632

iris9112 commented 5 years ago

Hi. I understand you. Don't worry. Definitely if I will review it and if I finish before, I let you know. I'm still very new to several things but I have to do it. very thank you!!

jeromecc commented 5 years ago

In the meantime you could do what I am doing: install Silver as an external Django 1.11 app with Python 2.7 and use it from your Django 2.x project through the API. Once 2.x support is here, it will be easy to dump & restore the data.

iris9112 commented 5 years ago

If you're right. I was doing that for a while, but now I need other things. And I think "if I have to do it anyway. Why not share it?" I just hope to find the time soon.

jeromecc commented 5 years ago

Sure. We should all contribute to the transition to Django 2.x! :-) I was just pointing out a workaround so that people interested in Silver who read this issue are encouraged to try this cool project even if they need to have a working solution right now. My skills about transitioning from earlier versions of Python & Django are limited but I will have a look at this branch https://github.com/silverapp/silver/pull/632 to see if I can help.

bogdanpetrea commented 5 years ago

Good news @iris9112, @jeromecc: I got the tests to pass in the #632 branch.

A few warnings though:

In other words, it's just a preview. Don't use it for anything important.

iris9112 commented 5 years ago

Hi!! You are amazing @bogdanpetrea ! The warning is understood. Thank you

shurph commented 5 years ago

Hi all, any updates here regarding Django 2 migration?

I'm trying now to launch Silver with Django 2.2 using the experimental django2x branch. During this process I'm facing with few issues. I'll add notes to the PR #632 regarding this.

I'm also wondering could I rely on django2x in my experiments?

BTW, @bogdanpetrea could you please rebase your django2x to have actual changes from master?

bogdanpetrea commented 5 years ago

@shurph: I'll try to get it merged this weekend. Please share any issues you encounter when using the django2x branch.

bogdanpetrea commented 5 years ago

Well, for now I've published a beta release, which you can install and test with pip install django-silver==0.8b1.