junction
junction copied to clipboard
Fix all the deprecated-warnings and upgrade django to 1.11
Toward https://github.com/pythonindia/junction/issues/611
Note: This PR has changes incompatible with Python 2.7 and is a part of the task involving Django 2.2 upgrade
-
Upgrading django-pagedown to
1.0.6because the latest version doesn't supportDjango 1.11, will be upgrading to latest while moving toDjango 2.0 -
Fix AttributeError: type object 'RadioSelect' has no attribute 'renderer': 1
-
Use django-markdown-app as django_markdown is not maintained.
-
Upgrade djangorestframework to latest version which removes the support of filters, so update django-filters to latest and made changes according to the requirements: 1
-
Upgrade celery to latest version
-
Droping use of django-uuidfield as Django has it's own UUIDfield: need to figure out a way to handle the migration
-
Upgrade django-bootstrap3==11.0.0, needs to upgraded to latest while moving to
Django 2 -
core.context_processorsis moved totemplate.context_processors -
Use
user.is_authenticatedas property
After these changes, only deprecated warnings remaining is related to Django which I think will vanish when we finally move to Django 2.0
Coverage increased (+0.03%) to 67.292% when pulling e70b6b2c4e98b842da18ad6ccefb3cab8f48ad54 on sks444:fix-all-deprecated-warnings into 49af450e177904c5edeced57154425b2a5e40040 on pythonindia:master.
@sks444 If you could make atomic commits, that'd make reviewing your PR (as well as iterating on them later) much easier! ^>^
@sks444 If you could make atomic commits, that'd make reviewing your PR (as well as iterating on them later) much easier! ^>^
Yes, thank you for the suggestion @pradyunsg , I will try to do atomic commits. Actually in this case, when I upgrade django, it starts breaking few other things, so all those fixes should go in one commit right? Or should I have a separate commit for each of the fix? But they are dependent on only one thing, i.e. upgrading django.
I think a separate commit per fix would be better.
I think this is ready for review now. :)
@sks444 Why are new migrations created for conferences and proposals ? There is no change in conference or proposal model.
Also can you rebase your changes on the latest master and solve the linting errors.
@sks444 Why are new migrations created for conferences and proposals ? There is no change in conference or proposal model.
@ananyo2012, That is coming from the simple_history package upgrade as we are using simple_history models for conference and proposal models.
I moved the migration files to simple_history package upgrade commit so that it would be reasonable.
So everything seems to be running perfectly, tests are passing and I am interacting with the UI and checking if these changes break something. But as I don't have much experience with the project I might miss few features. @pradyunsg, @ananyo2012, would be great if you could help me with the same. :)
Do your thing Travis CI.
@sks444 Can you rebase your changes over the latest master ?
Rebased @ananyo2012
Note: Putting a hold on the merge until the upgrade compatibility is tested
@sks444 The CI is failing due to conflicting migrations. Can you please check?
Resolved the migration issue @palnabarun
* Upgrade djangorestframework to latest version
This isn't supported on Python 2.
@pythonindia/pycon-india-2020-junction Do we care about Python 2 support? If not, let's drop it?
@sks444 Thank you for resolving that.
@pradyunsg We do care about Python 2 at the moment.
@sks444 need your input in #687
@onlinejudge95 we can not move directly to Django 2 without merging this pr as it would break a lot of things.
I have made all the changes here which are required to upgrade to Django 1.11. Although I have tested this on my system, it would very helpful if you could also verify this on yours. So that we could go ahead and merge this and then we can try upgrading to Django 2 and see what breaks.
@sks444 on it
Even I was bumping the versions incrementally it failed for 1.10 for me due to obsolete dependencies.
@sks444 -- can you please change the target of your changes to django-2.2 branch? We are starting to merge Django upgrade related changes to that branch.
Done @palnabarun
@sks444 @palnabarun Django REST framework has dropped support for Python2.7 link. I doubt we will be able to pass the installation steps in Travis build due to this.
Proposing to drop support for Python2.7, what do you say guys?
We will be dropping Python 2.7 support and remove it from before this is merged
On Tue, 9 Jun, 2020, 2:15 PM onlinejudge95, [email protected] wrote:
@sks444 https://github.com/sks444 @palnabarun https://github.com/palnabarun Django REST framework has dropped support for Python2.7 link https://www.django-rest-framework.org/#requirements. I doubt we will be able to pass the installation steps in Travis build due to this.
Proposing to drop support for Python2.7, what do you say guys?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pythonindia/junction/pull/664#issuecomment-641131464, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACQAER3KYLKZQMLQXUN5OSDRVXZBDANCNFSM4MASPRZQ .