-
Notifications
You must be signed in to change notification settings - Fork 209
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't remember deciding with you or @sakshi1499 that we are going to stick to using version 2. Django 2.0 was almost released two years ago and has already reached support end https://www.djangoproject.com/download/#supported-versions
We can go with 2.2 LTS, but given Anita-B is a fast moving organization it makes no sense to use an older LTS version.
I would like to know what problems you faced with upgrading to 3.0, and we can all try to fix them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@satya7289 remove the migrations from the folder
I have to modify the migrations file for upgrading django to latest version(as some of the migrations where created using python2.7 which is not supported by django latest version). see |
69ff3d5
to
330b677
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@satya7289 can you provide a GIF or a screenshot of the working :)
@satya7289 Did you make the changes as we discussed for Django 3.0? |
7b3ecc3
to
09eaffb
Compare
c2a0e46
to
9c0fab0
Compare
b73d097
to
7179e2d
Compare
@@ -44,4 +47,4 @@ notifications: | |||
on_failure: always | |||
on_start: false | |||
after_success: | |||
coveralls --rcfile=.coveragerc | |||
coveralls --rcfile=.coveragerc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you removed the newline
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it metter here, as it is not .py file!!!
Great work @satya7289 ! Why did you add html file changes though? They cannot be part of this PR. |
{% load staticfiles %} has been changed to {% load static %} for django 3.0.8 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few nitpicks.
Also the migrations were generated with Django 2, can you re-generate them with Django 3?
@@ -1,4 +1,4 @@ | |||
[flake8] | |||
ignore = F403 | |||
ignore = F403, F405 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the need for adding this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Due to import * is used some files. Exactly not remember which files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see any star imports though
@@ -19,4 +20,4 @@ <h1 class="contact-head">Contact Systers</h1> | |||
</div> | |||
<div class="mt40"></div> | |||
</div> | |||
{% endblock %} | |||
{% endblock %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add the newlines back
c4cb5d4
to
bd25b81
Compare
bd25b81
to
8797055
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks really good!
@satya7289 Excellent work, and patience!
🎉 🎉 This is great @satya7289 I have opened #622 (will update it soon) for some warnings during the test run |
Description
Upgrade django to 3.0.8.
major changes for upgrading to 3.0.8 are as follows
from django.core.urlresolvers import reverse
->from django.urls import reverse
on_delete=models.CASCADE
to foreignkey and onetoonekey relationship for the model.Fixes #565
Type of Change:
Delete irrelevant options.
Code/Quality Assurance Only
How Has This Been Tested?
pass all test cases. running fine locally.
Checklist:
Delete irrelevant options.
Code/Quality Assurance Only