On 6/9/18 5:11 PM, Tom Browder wrote:
Thanks, Mark. Will the release be pretty much a one-step affair for us older folks without much energy?
Probably not, but it depends at least in part on what you are currently running. There is a major change in that everything is now Python 3. This means that you now must run Django under Python 3 which probably entails changes to how the web server runs wsgi apps to support Python 3. Also, You can run Django versions 1.11.x, or 2.0.x, but Django 2.0.x requires you make changes to the Django config as in this diff.
--- a/mailman-suite_project/settings.py +++ b/mailman-suite_project/settings.py @@ -94,13 +94,12 @@ INSTALLED_APPS = ( )
-MIDDLEWARE_CLASSES = ( +MIDDLEWARE = ( 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', - 'django.contrib.auth.middleware.SessionAuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'django.middleware.security.SecurityMiddleware',
--- a/mailman-suite_project/urls.py> +++ b/mailman-suite_project/urls.py @@ -19,7 +19,7 @@
from django.conf.urls import include, url from django.contrib import admin -from django.core.urlresolvers import reverse_lazy +from django.urls import reverse_lazy from django.views.generic import RedirectView
urlpatterns = [ @@ -31,5 +31,5 @@ urlpatterns = [ url(r'', include('django_mailman3.urls')), url(r'^accounts/', include('allauth.urls')), # Django admin - url(r'^admin/', include(admin.site.urls)), + url(r'^admin/', admin.site.urls), ]
I.e., the name MIDDLEWARE_CLASSES is changed to MIDDLEWARE and the obsolete django.contrib.auth.middleware.SessionAuthenticationMiddleware has to be removed; the reverse_lazy import is changed and include(admin.site.urls) becomes just admin.site.urls -- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan