Update website code to use python 3.x
Bug #1762164 reported by
kaputtnik
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Widelands Website |
Fix Released
|
High
|
Unassigned |
Bug Description
Since django v1.11 is the last version with support for python 2.7, update the website code to use python 3.x. We have time for this until 2020. Plan:
1. Reduce code basis:
1.1. Try to remove/exchange third party apps with python 3 compatible ones. Especially:
- django-rating (done)
- threadedcomments
1.2. Cleanup own code basis and remove unused code. E.g. pybb has code for private messages which is unused
2. Convert to python3.
The installed python3 version on the server is currently 3.4.3
Related branches
lp:~widelands-dev/widelands-website/pybb_cleanup
- GunChleoc: Approve
-
Diff: 1383 lines (+209/-766)22 files modifiedmainpage/templates/mainpage/forum_navigation.html (+3/-1)
pybb/admin.py (+11/-6)
pybb/forms.py (+1/-12)
pybb/migrations/0005_auto_20181221_1047.py (+30/-0)
pybb/models.py (+1/-45)
pybb/settings.py (+1/-10)
pybb/signals.py (+1/-1)
pybb/static/css/forum.css (+10/-1)
pybb/templates/pybb/category.html (+2/-2)
pybb/templates/pybb/forum.html (+10/-10)
pybb/templates/pybb/index.html (+2/-2)
pybb/templates/pybb/inlines/display_category.html (+39/-30)
pybb/templates/pybb/inlines/post.html (+70/-108)
pybb/templates/pybb/inlines/topic_row.html (+0/-43)
pybb/templates/pybb/pagination.html (+0/-41)
pybb/templates/pybb/topic.html (+16/-174)
pybb/templatetags/pybb_extras.py (+3/-167)
pybb/urls.py (+0/-1)
pybb/util.py (+0/-63)
pybb/views.py (+8/-45)
settings.py (+1/-1)
wlprofile/models.py (+0/-3)
lp:~widelands-dev/widelands-website/update_third_party_apps
- GunChleoc: Approve
-
Diff: 396 lines (+71/-67)23 files modifiedlocal_settings.py.sample (+3/-4)
mainpage/forms.py (+1/-1)
mainpage/templates/mainpage/header.html (+2/-2)
mainpage/templates/mainpage/right_boxes.html (+1/-1)
pip_requirements.txt (+40/-35)
templates/django_registration/activate.html (+2/-2)
templates/django_registration/activation_complete.html (+2/-2)
templates/django_registration/activation_email_body.txt (+1/-1)
templates/django_registration/registration_complete.html (+1/-1)
templates/django_registration/registration_form.html (+1/-1)
templates/registration/login.html (+2/-2)
templates/registration/logout.html (+1/-1)
templates/registration/password_change_done.html (+1/-1)
templates/registration/password_change_form.html (+1/-1)
templates/registration/password_reset_complete.html (+2/-2)
templates/registration/password_reset_confirm.html (+1/-1)
templates/registration/password_reset_done.html (+1/-1)
templates/registration/password_reset_email.html (+1/-1)
templates/registration/password_reset_form.html (+1/-1)
templates/star_rating/rate.html (+1/-1)
threadedcomments/templates/threadedcomments/inlines/comments.html (+1/-1)
urls.py (+3/-3)
wlprofile/templates/wlprofile/edit_profile.html (+1/-1)
lp:~widelands-dev/widelands-website/mv_main_files
- GunChleoc: Approve
-
Diff: 1003 lines (+139/-140)34 files modifiedREADME.txt (+43/-39)
mainpage/settings.py (+3/-3)
mainpage/sitemap_urls.py (+1/-2)
mainpage/templatetags/wl_markdown.py (+9/-9)
mainpage/urls.py (+2/-2)
mainpage/utest/test_wl_markdown.py (+2/-2)
mainpage/views.py (+6/-6)
mainpage/wlwebsite_wsgi.py (+1/-1)
manage.py (+1/-1)
news/models.py (+0/-1)
privacy_policy/views.py (+1/-1)
threadedcomments/views.py (+1/-1)
widelandslib/make_flow_diagram.py (+2/-2)
widelandslib/tribe.py (+3/-3)
wiki/forms.py (+3/-2)
wiki/templates/wiki/backlinks.html (+2/-1)
wiki/urls.py (+13/-13)
wiki/views.py (+2/-2)
wlggz/migrations/0001_initial.py (+1/-1)
wlggz/models.py (+1/-3)
wlhelp/management/commands/update_help.py (+12/-12)
wlhelp/management/commands/update_help_pdf.py (+5/-5)
wlhelp/views.py (+0/-2)
wlimages/models.py (+2/-2)
wlmaps/forms.py (+4/-5)
wlmaps/tests/test_views.py (+0/-2)
wlmaps/views.py (+4/-3)
wlprofile/forms.py (+1/-1)
wlprofile/migrations/0001_initial.py (+1/-1)
wlprofile/models.py (+2/-2)
wlprofile/templatetags/custom_date.py (+3/-3)
wlscheduling/templates/wlscheduling/other-users.html (+3/-2)
wlscreens/models.py (+3/-3)
wlscreens/tests/test_models.py (+2/-2)
lp:~widelands-dev/widelands-website/wlwebsite_py36
- GunChleoc: Approve
-
Diff: 8078 lines (+2625/-2509)141 files modifiedREADME.txt (+11/-11)
check_input/migrations/0001_initial.py (+1/-1)
check_input/models.py (+1/-1)
documentation/conf.py (+2/-2)
documentation/management/commands/create_docs.py (+1/-1)
local_settings.py.sample (+0/-2)
mainpage/admin.py (+2/-2)
mainpage/online_users_middleware.py (+1/-1)
mainpage/settings.py (+15/-15)
mainpage/sitemap_urls.py (+1/-1)
mainpage/templatetags/wl_markdown.py (+8/-8)
mainpage/urls.py (+1/-1)
mainpage/utest/test_wl_markdown.py (+67/-67)
mainpage/views.py (+7/-5)
mainpage/wlwebsite_wsgi.py (+1/-1)
news/migrations/0001_initial.py (+1/-1)
news/migrations/0002_auto_20170417_1857.py (+1/-1)
news/models.py (+4/-4)
news/templatetags/news_extras.py (+2/-2)
notification/engine.py (+5/-3)
notification/lockfile.py (+3/-3)
notification/migrations/0001_initial.py (+1/-1)
notification/migrations/0002_auto_20170417_1857.py (+1/-1)
notification/migrations/0003_auto_20190409_0924.py (+1/-1)
notification/models.py (+14/-12)
notification/views.py (+1/-1)
privacy_policy/admin.py (+1/-1)
privacy_policy/apps.py (+1/-1)
privacy_policy/migrations/0001_initial.py (+1/-1)
privacy_policy/models.py (+2/-2)
privacy_policy/views.py (+1/-1)
pybb/lib/phpserialize.py (+10/-10)
pybb/management/__init__.py (+1/-1)
pybb/management/commands/pybb_resave_post.py (+1/-1)
pybb/management/pybb_notifications.py (+1/-1)
pybb/markups/postmarkup.py (+125/-125)
pybb/migrations/0001_initial.py (+1/-1)
pybb/migrations/0002_auto_20161001_2046.py (+1/-1)
pybb/migrations/0003_remove_post_user_ip.py (+1/-1)
pybb/migrations/0004_auto_20181209_1334.py (+1/-1)
pybb/migrations/0005_auto_20181221_1047.py (+1/-1)
pybb/models.py (+8/-8)
pybb/orm.py (+2/-2)
pybb/templates/pybb/last_posts.html (+1/-1)
pybb/templatetags/pybb_extras.py (+3/-3)
pybb/util.py (+4/-4)
pybb/views.py (+2/-2)
python3.txt (+104/-0)
threadedcomments/admin.py (+1/-1)
threadedcomments/migrations/0001_initial.py (+1/-1)
threadedcomments/migrations/0002_auto_20181003_1238.py (+1/-1)
threadedcomments/models.py (+2/-2)
threadedcomments/templatetags/gravatar.py (+10/-10)
threadedcomments/templatetags/threadedcommentstags.py (+19/-19)
threadedcomments/utils.py (+2/-2)
threadedcomments/views.py (+1/-1)
widelandslib/make_flow_diagram.py (+26/-26)
widelandslib/test/test_conf.py (+1/-1)
widelandslib/test/test_map.py (+3/-3)
widelandslib/tribe.py (+13/-14)
wiki/diff_match_patch.py (+1872/-1891)
wiki/feeds.py (+2/-2)
wiki/management.py (+1/-1)
wiki/migrations/0001_initial.py (+1/-1)
wiki/migrations/0002_auto_20161218_1056.py (+1/-1)
wiki/migrations/0003_auto_20180918_0836.py (+1/-1)
wiki/models.py (+28/-28)
wiki/static/css/wiki.css (+13/-0)
wiki/templatetags/restructuredtext.py (+1/-1)
wiki/templatetags/wiki_extras.py (+2/-2)
wiki/views.py (+2/-2)
wlevents/admin.py (+1/-1)
wlevents/migrations/0001_initial.py (+1/-1)
wlevents/templatetags/wlevents_extras.py (+1/-1)
wlevents/tests.py (+1/-1)
wlggz/admin.py (+1/-1)
wlggz/forms.py (+2/-2)
wlggz/migrations/0001_initial.py (+1/-1)
wlggz/migrations/0002_auto_20160805_2004.py (+1/-1)
wlggz/urls.py (+1/-1)
wlggz/views.py (+1/-1)
wlhelp/management/commands/update_help.py (+37/-36)
wlhelp/management/commands/update_help_pdf.py (+6/-6)
wlhelp/migrations/0001_initial.py (+1/-1)
wlhelp/migrations/0002_auto_20190410_1734.py (+1/-1)
wlhelp/models.py (+11/-11)
wlhelp/tests.py (+1/-1)
wlhelp/urls.py (+1/-1)
wlimages/admin.py (+2/-2)
wlimages/forms.py (+1/-1)
wlimages/migrations/0001_initial.py (+1/-1)
wlimages/migrations/0002_remove_image_url.py (+1/-1)
wlimages/migrations/0003_remove_image_editor_ip.py (+1/-1)
wlimages/models.py (+1/-1)
wlimages/templatetags/wlimages_extras.py (+3/-3)
wlimages/tests.py (+4/-4)
wlimages/urls.py (+1/-1)
wlimages/views.py (+3/-3)
wlmaps/admin.py (+1/-1)
wlmaps/management.py (+1/-1)
wlmaps/migrations/0001_initial.py (+1/-1)
wlmaps/migrations/0002_auto_20181119_1855.py (+1/-1)
wlmaps/models.py (+2/-2)
wlmaps/tests/__init__.py (+2/-2)
wlmaps/urls.py (+2/-2)
wlmaps/views.py (+2/-2)
wlpoll/admin.py (+1/-1)
wlpoll/migrations/0001_initial.py (+1/-1)
wlpoll/models.py (+3/-3)
wlpoll/templatetags/wlpoll_extras.py (+3/-3)
wlpoll/tests.py (+1/-1)
wlpoll/urls.py (+1/-1)
wlpoll/views.py (+1/-1)
wlprofile/admin.py (+1/-1)
wlprofile/fields.py (+4/-4)
wlprofile/forms.py (+1/-1)
wlprofile/gravatar.py (+6/-6)
wlprofile/management/commands/profile_fetch_gravatars.py (+2/-2)
wlprofile/migrations/0001_initial.py (+1/-1)
wlprofile/migrations/0002_profile_deleted.py (+1/-1)
wlprofile/models.py (+1/-1)
wlprofile/templatetags/custom_date.py (+34/-19)
wlprofile/templatetags/wlprofile_extras.py (+1/-1)
wlprofile/tests.py (+6/-6)
wlprofile/urls.py (+1/-1)
wlprofile/views.py (+1/-1)
wlscheduling/migrations/0001_initial.py (+1/-1)
wlscheduling/urls.py (+1/-1)
wlscheduling/views.py (+1/-1)
wlscreens/admin.py (+1/-1)
wlscreens/migrations/0001_initial.py (+1/-1)
wlscreens/migrations/0002_auto_20190410_1737.py (+1/-1)
wlscreens/models.py (+8/-9)
wlscreens/tests/__init__.py (+2/-2)
wlscreens/tests/test_models.py (+1/-1)
wlscreens/urls.py (+2/-2)
wlscreens/views.py (+1/-1)
wlsearch/urls.py (+1/-1)
wlsearch/views.py (+2/-2)
wlwebchat/tests.py (+1/-1)
wlwebchat/urls.py (+1/-1)
description: | updated |
description: | updated |
description: | updated |
Changed in widelands-website: | |
status: | Confirmed → Fix Released |
To post a comment you must log in.
Turns that this task is a bit difficult for me :-D :
- The highest Python version supported by Django 1.11 is 3.6
- On archlinux the used python version is 3.7
- Downgrading here to python 3.6 does not work, because libreoffice depends on Python version 3.7. And i need libreoffice for other stuff.
Currently i compile python 3.6 for myself and will try to create a virtualenvironment with that version.
I had also the idea to create a Virtual machine with Ubuntu running, but i guess it will be the same work in the end, beside it steals some resources from the host. Any other ideas for my problem?