(BlogVenv) C:\Work\Software\eclipse-jee-2019-12-R-win32-x86_64\workspace\Blog>pip list
Package              Version
-------------------- ----------
asgiref              3.2.3
certifi              2019.11.28
chardet              3.0.4
defusedxml           0.6.0
Django               2.1.15
django-allauth       0.41.0
django-debug-toolbar 2.2
django-disqus        0.5
django-js-asset      1.2.2
django-mptt          0.11.0
django-pyodbc-azure  2.1.0.0
django-tagging       0.4.6
idna                 2.9
mock                 3.0.5
oauthlib             3.1.0
Pillow               7.0.0
pip                  20.1
pymssql              2.1.4
pyodbc               4.0.28
python3-openid       3.1.0
pytz                 2019.3
requests             2.23.0
requests-oauthlib    1.3.0
setuptools           45.0.0
six                  1.14.0
sqlparse             0.3.0
urllib3              1.25.8
wheel                0.33.6


(BlogVenv) C:\Work\Software\eclipse-jee-2019-12-R-win32-x86_64\workspace\Blog>pip install psycopg2
Collecting psycopg2
  Downloading psycopg2-2.8.5-cp37-cp37m-win32.whl (984 kB)
     || 984 kB 23 kB/s
Installing collected packages: psycopg2
Successfully installed psycopg2-2.8.5

(BlogVenv) C:\Work\Software\eclipse-jee-2019-12-R-win32-x86_64\workspace\Blog>pip list
Package              Version
-------------------- ----------
asgiref              3.2.3
certifi              2019.11.28
chardet              3.0.4
defusedxml           0.6.0
Django               2.1.15
django-allauth       0.41.0
django-debug-toolbar 2.2
django-disqus        0.5
django-js-asset      1.2.2
django-mptt          0.11.0
django-pyodbc-azure  2.1.0.0
django-tagging       0.4.6
idna                 2.9
mock                 3.0.5
oauthlib             3.1.0
Pillow               7.0.0
pip                  20.1
psycopg2             2.8.5
pymssql              2.1.4
pyodbc               4.0.28
python3-openid       3.1.0
pytz                 2019.3
requests             2.23.0
requests-oauthlib    1.3.0
setuptools           45.0.0
six                  1.14.0
sqlparse             0.3.0
urllib3              1.25.8
wheel                0.33.6

psycopg2 설치하지 말고 아래로 설치하자.

# pip install psycopg2-binary

 

-- MSSQL 관련 django-pyodbc-azure, pyodbc,  pymssql 삭제
-- Django 2.1.15 삭제후 다시 Django 3.0.6 설치후 django-tagging, django-disqus 버전관련 에러 발생하여 재설치

(BlogVenv) C:\Work\Software\eclipse-jee-2019-12-R-win32-x86_64\workspace\Blog>pip uninstall django-tagging
(BlogVenv) C:\Work\Software\eclipse-jee-2019-12-R-win32-x86_64\workspace\Blog>pip install django-tagging

(BlogVenv) C:\Work\Software\eclipse-jee-2019-12-R-win32-x86_64\workspace\Blog>pip uninstall django-disqus
(BlogVenv) C:\Work\Software\eclipse-jee-2019-12-R-win32-x86_64\workspace\Blog>pip install django-disqus

(BlogVenv) C:\Work\Software\eclipse-jee-2019-12-R-win32-x86_64\workspace\Blog>python manage.py makemigrations --settings=Blog.settings.settings_prd
(BlogVenv) C:\Work\Software\eclipse-jee-2019-12-R-win32-x86_64\workspace\Blog>python manage.py migrate --settings=Blog.settings.settings_prd


(BlogVenv) C:\Work\Software\eclipse-jee-2019-12-R-win32-x86_64\workspace\Blog>pip list
Package              Version
-------------------- ----------
asgiref              3.2.3
certifi              2019.11.28
chardet              3.0.4
defusedxml           0.6.0
Django               3.0.6
django-allauth       0.41.0
django-debug-toolbar 2.2
django-disqus        0.5
django-js-asset      1.2.2
django-mptt          0.11.0
django-tagging       0.5.0
idna                 2.9
mock                 3.0.5
oauthlib             3.1.0
Pillow               7.0.0
pip                  20.1
psycopg2             2.8.5
pyodbc               4.0.28
python3-openid       3.1.0
pytz                 2019.3
requests             2.23.0
requests-oauthlib    1.3.0
setuptools           46.3.1
six                  1.14.0
sqlparse             0.3.0
urllib3              1.25.8
wheel                0.34.2


(BlogVenv) C:\Work\Software\eclipse-jee-2019-12-R-win32-x86_64\workspace\Blog>python manage.py createsuperuser --settings=Blog.settings.settings_prd
Username (leave blank to use 'administrator'):
Email address: anzi****@****.com
Password:
Password (again):
Superuser created successfully.


-- makemigrations 시 disqus관련해서 아래 에러 발생하면

  File "C:\Work\Software\eclipse-jee-2019-12-R-win32-x86_64\workspace\Blog\BlogVenv\lib\site-packages\disqus\__init__.py", line 3, in <module>
    from django.utils.six.moves.urllib.parse import urlencode
ModuleNotFoundError: No module named 'django.utils.six'

 

../disqus/__init__.py 에서 아래처럼 변경후 다시 makemigrations하면 된다.
----------------------------------------------------------
-- before

import json

from django.utils.six.moves.urllib.parse import urlencode
from django.utils.six.moves.urllib.request import urlopen


-- after
import json

from six.moves.urllib.parse import urlencode
from six.moves.urllib.request import urlopen