-
-
Notifications
You must be signed in to change notification settings - Fork 968
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Django Framework from 2.2.27 to 4.2 LTS #1471
Comments
EOL notes - https://www.djangoproject.com/download/ and https://endoflife.date/django |
Do you know of any gotchas? API breaks? Keeping current on supported dependencies would be wonderful. |
So this doco covers the process - https://docs.djangoproject.com/en/5.0/howto/upgrade-version/ Example incompatible notes - https://docs.djangoproject.com/en/5.0/releases/4.2/#backwards-incompatible-changes-in-4-2 And a good list here as well - https://docs.djangoproject.com/en/5.0/internals/deprecation/ |
I started to make a little progress on this. I am playing dependency wack a mole. The main focus is identifying packages that are deprecated/abandoned with no clear support from their maintainer/community. rfc3987 - Github repo was archived on the 12th Jan 2024 but moved to a new repo recently. djangorestframework-jwt - Github archived django-rest-framework-guardian openapi-codec - Github archived django-codemirror2 - After 7 years of no activity has had a few updates this year. |
This is great Chris. Anything you need to help, e.g. identifying alternatives? I would say, for anything that has a known upgrade path, feel free to upgrade and test, and send me a relevant repo to review and I'm happy to run in production on my end and help find any issues. |
Support for the previous LTS, Django 3.2, will end in April 2024. Then, upstream support for PostgreSQL 11 ends in November 2023. Django 4.2 supports PostgreSQL 12 and higher. But the EOL of PostgreSQL 12 is coming soon in November 14, 2024. It may be a lot of challenges. Whether should try to upgrade them to the latest LTS version or others versions? |
Hello everyone! Great news! The migration work has made some progress, including Django 4.2 LTS, PostgreSQL 16, and more. We still need to conduct further testing on functions. Could you create a new branch for this purpose, please. I will creat a PR and advance the work to the next stage. Thank you! @Saijin-Naib @smathermather |
That is fantastic news! Thanks for continuing on this path. I defer to Piero on workflow, but we typically just keep the main branch except for hot fixes, and then merge from branches on forks when testing is complete. If you let me know what fork/branch you have for testing, I can build and test as a start. |
I have solved a part compatibility problems to sure it can work in the development environment. But there are also many different from django-rest-framework-jwt to djangorestframework-simplejwt. So it can not pass the test in webodm.sh. I don't really understand about auth function. I'm sorry. |
My apologies. I noticed that there is a actions for Build Docker Image and Public. I don't know whether it can bring dangers to other users with some Breaking change. In my opinions that we should be more careful. If you think it doesn't matter, that I will do it soon. |
Thanks for the pull request! We can run workflows on pull requests without merging, they just don't run by default. Once the pull request is far enough along and reviewed, I would expect we'll also test it in a workflow before merging. |
#1543 @pierotofy
I found the field orthophoto in models.Task was been add in 2016, then deleted in 2017.
79 | ('orthophoto', django.contrib.gis.db.models.RasterField(blank=True, help_text='Orthophoto created by OpenDroneMap', null=True, srid=4326)),
operations = [
migrations.RemoveField(
model_name='task',
name='orthophoto',
),
|
TODO: update Ubuntu to 24.04 LTS or 22.04 LTS
PDAL has not ready to fit the Ubuntu 24.04, but 22.04 is ok.
|
The behavior of tar -zxf postgis-$POSTGIS_VERSION.tar.gz; \
sed -i 's/#error.*/#define ACCEPT_USE_OF_DEPRECATED_PROJ_API_H 1/' /usr/include/proj_api.h; \
cd /staging/postgis-$POSTGIS_VERSION; \
./configure --with-pgconfig=/usr/local/pgsql/bin/pg_config --with-gdalconfig=/usr/bin/gdal-config > /dev/null; \ subsequent: |
@pierotofy Django 4.2 only supports PostgreSQL 12 and higher. Whether to need to continue to push the work, but more conservative. |
How did you install WebODM (docker, installer, etc.)?
N/A
What's your browser and operating system? (Copy/paste the output of https://www.whatismybrowser.com/)
N/A
What is the problem?
Django framework is EOL. WebODM uses 2.2.27 and the current LTS is 4.2
Placeholder issue to begin discussion on upgrading the framework.
How can we reproduce this? (What steps trigger the problem? What parameters are you using for processing? Include screenshots. If you are having issues processing a dataset, you must include a copy of your dataset uploaded on Dropbox, Google Drive or https://dronedb.app)
Review Django version here -
WebODM/requirements.txt
Line 7 in 8150b82
4.2 LTS makes sense support-wise, but v5 is also out.
The text was updated successfully, but these errors were encountered: