mezzanine が 2018/06/14 に 4.3.0 に version up したので、 当ブログの mezzanine を 4.2.3 から 4.3.0 に update してみました。
実施したことを備忘として残します。

[TOC]


前提

以下の環境で実行しています。

  • OS

    cat /etc/redhat-release
    CentOS Linux release 7.5.1804 (Core) 
    

  • Python Version

    python3.6 -V
    Python 3.6.4
    

  • Package

    python3.6 -m pip list
    Django                     1.10.8     
    Mezzanine                  4.2.3    
    

UPGRADE

現状 Version の確認

  • UPGRADE 前の pip list

    python3.6 -m pip list
    Package                    Version    
    -------------------------- -----------
    apns2                      0.3.0      
    asn1crypto                 0.24.0     
    beautifulsoup4             4.6.0      
    bleach                     2.1.2      
    cachetools                 2.0.1      
    certifi                    2018.1.18  
    cffi                       1.11.4     
    chardet                    3.0.4      
    coreapi                    2.3.3      
    coreschema                 0.0.4      
    cryptography               2.1.4      
    cssmin                     0.2.0      
    Django                     1.10.8     
    django-appconf             1.0.2      
    django-braces              1.12.0     
    django-compressor          2.2        
    django-contrib-comments    1.8.0      
    django-cookies-samesite    0.1.2      
    django-critical            0.1.1      
    django-crontab             0.7.1      
    django-csp                 3.4        
    django-csp-reports         1.1        
    django-el-pagination       3.2.4      
    django-extensions          1.9.8      
    django-filter              1.1.0      
    django-htmlmin             0.10.0     
    django-modelcluster        3.1        
    django-oauth-toolkit       0.12.0     
    django-push-notifications  1.6.0      
    django-request             1.5.4      
    django-rest-swagger        2.1.2      
    django-robots              3.0        
    django-taggit              0.22.2     
    django-treebeard           4.2.0      
    django-webpack-loader      0.5.0      
    djangorestframework        3.6.4      
    ecdsa                      0.13       
    filebrowser-safe           0.4.7      
    future                     0.16.0     
    google-api-python-client   1.6.4      
    google-auth                1.2.1      
    google-auth-httplib2       0.0.3      
    google-auth-oauthlib       0.2.0      
    grappelli-safe             0.4.7      
    h2                         2.6.2      
    hpack                      3.0.0      
    html5lib                   0.999999999
    http-ece                   1.0.5      
    httplib2                   0.11.3     
    hyper                      0.7.0      
    hyperframe                 3.2.0      
    idna                       2.6        
    itypes                     1.1.0      
    Jinja2                     2.10       
    Markdown                   2.6.11     
    MarkupSafe                 1.0        
    mecab-python3              0.7        
    Mezzanine                  4.2.3      
    mezzanine-api              0.6.1      
    mezzanine-pagedown         1.0        
    mezzanine-pubsubhubbub-pub 0.0.5      
    mock                       2.0.0      
    mod-wsgi                   4.5.24     
    numpy                      1.14.0     
    oauth2client               4.1.2      
    oauthlib                   2.0.6      
    openapi-codec              1.3.2      
    pandas                     0.22.0     
    pbr                        3.1.1      
    Pillow                     5.0.0      
    pip                        10.0.1     
    psycopg2                   2.7.3.2    
    puput                      0.9.2.1    
    py-vapid                   1.3.0      
    pyasn1                     0.4.2      
    pyasn1-modules             0.2.1      
    pycparser                  2.18       
    Pygments                   2.2.0      
    PyJWT                      1.5.3      
    pymdown-extensions         4.7        
    pymongo                    3.6.0      
    python-dateutil            2.6.1      
    python-memcached           1.59       
    pytz                       2018.3     
    pywebpush                  1.6.0      
    rcssmin                    1.0.6      
    requests                   2.18.4     
    requests-oauthlib          0.8.0      
    rjsmin                     1.0.12     
    rsa                        3.4.2      
    scikit-learn               0.19.1     
    scipy                      1.0.0      
    searchconsole              0.0.3      
    setuptools                 36.6.0     
    simplejson                 3.13.2     
    six                        1.11.0     
    sklearn                    0.0        
    typing                     3.6.2      
    tzlocal                    1.5.1      
    Unidecode                  1.0.22     
    uritemplate                3.0.0      
    urllib3                    1.22       
    wagtail                    1.13.1     
    wagtail-markdown           0.5a2.post1
    webencodings               0.5.1      
    Willow                     1.0        
    

  • UPGRADE実行

    python3.6 -m pip install Mezzanine -U
    Successfully installed Mezzanine-4.3.0
    


check コマンドによる確認

django の check コマンド エラーとならないか確認します。

python3.6 manage.py check
System check identified no issues (0 silenced).


Makemigrations の実行

makemigrations を実行します。

python3.6 manage.py makemigrations
No changes detected

特に変化がないので、migrate も実行してみます。

python3.6 manage.py migrate     
Operations to perform:
  Apply all migrations: admin, auth, blog, conf, contenttypes, core, cspreports, django_comments, forms, galleries, generic, oauth2_provider, pages, push_notifications, redirects, request, robots, sessions, sites, twitter
Running migrations:
  Applying blog.0003_auto_20170411_0504... OK
  Applying forms.0006_auto_20170425_2225... OK
  Applying generic.0003_auto_20170411_0504... OK
  Applying pages.0004_auto_20170411_0504... OK
幾つか変化があります。


サーバー起動後の確認

apache の 起動後の結果を確認します。

apachectl restart

起動後に画面確認をしたところ、無事表示できました。
CHANGELOG を見る限り、結構な変更が入っているのですが、特に 4.2.3 からの UPDATE では破壊的な変更はないようです。

以上です。

コメント