これは地味に邪魔なので解決する方法
pylintの追加モジュールをインストール。
pip install pylint-django
Visual Studio Codeの基本設定 > 設定 > ユーザ設定に下記を追加。
"python.linting.pylintArgs": [
"--load-plugins=pylint_django"
],
以上。
pip install pylint-django
Visual Studio Codeの基本設定 > 設定 > ユーザ設定に下記を追加。
"python.linting.pylintArgs": [
"--load-plugins=pylint_django"
],
以上。
sudo apt-get install certbot python-certbot-apache -t jessie-backports
cat /etc/cron.d/certbot
certbot certonly --agree-tos --webroot -w /var/www/html/ -d example.com
sudo vi /etc/apache2/sites-available/default-ssl.conf
上記ファイル内に下記の様に記載。証明書のパスは要確認。
SSLCertificateFile "/etc/letsencrypt/live/example.com/cert.pem"
SSLCertificateKeyFile "/etc/letsencrypt/live/example.com/privkey.pem"
SSLCertificateChainFile "/etc/letsencrypt/live/example.com/chain.pem"
sudo vi /etc/apache2/sites-available/wordpress.conf
上記ファイル内に下記の通り、ドメイン設定追加。
ServerName www.example.com
Redirect / https://www.example.com/
ServerName example.com
Redirect / https://example.com/
サーバを再起動して反映させる。
sudo systemctl restart apache2