My question is how many difference between the django-nonrel 1.6 and django 2.2.2?
Here is my installation logs
PS D:\dvp\rssnews\rssdesign> pip install git+https://github.com/django-nonrel/django@nonrel-1.6
Collecting git+https://github.com/django-nonrel/django@nonrel-1.6
Cloning https://github.com/django-nonrel/django (to revision nonrel-1.6) to c:\users\apeng\appdata\local\temp\pip-req-build-dkaw_4no
Running command git clone -q https://github.com/django-nonrel/django 'C:\Users\apeng\AppData\Local\Temp\pip-req-build-dkaw_4no'
Installing collected packages: Django
Found existing installation: Django 2.2.2
Uninstalling Django-2.2.2:
Successfully uninstalled Django-2.2.2
Running setup.py install for Django ... done
Successfully installed Django-1.6.11
PS D:\dvp\rssnews\rssdesign>
PS D:\dvp\rssnews\rssdesign> pip install git+https://github.com/django-nonrel/djangotoolbox
Collecting git+https://github.com/django-nonrel/djangotoolbox
Cloning https://github.com/django-nonrel/djangotoolbox to c:\users\apeng\appdata\local\temp\pip-req-build-n861hj4a
Running command git clone -q https://github.com/django-nonrel/djangotoolbox 'C:\Users\apeng\AppData\Local\Temp\pip-req-build-n861hj4a'
Installing collected packages: djangotoolbox
Running setup.py install for djangotoolbox ... done
Successfully installed djangotoolbox-1.8.0
PS D:\dvp\rssnews\rssdesign> pip install git+https://github.com/django-nonrel/mongodb-engine
Collecting git+https://github.com/django-nonrel/mongodb-engine
Cloning https://github.com/django-nonrel/mongodb-engine to c:\users\apeng\appdata\local\temp\pip-req-build-w22gp2nf
Running command git clone -q https://github.com/django-nonrel/mongodb-engine 'C:\Users\apeng\AppData\Local\Temp\pip-req-build-w22gp2nf'
Collecting pymongo>=2.8 (from django-mongodb-engine==0.6.0)
Downloading https://files.pythonhosted.org/packages/92/d2/6993655f5c46755cf3385ef8cec78f49909e035777724a0bf02251de733f/pymongo-3.8.0-cp37-cp37m-win32.whl (312kB)
|████████████████████████████████| 317kB 1.1MB/s
Requirement already satisfied: djangotoolbox>=1.6.0 in c:\users\apeng\appdata\local\programs\python\python37-32\lib\site-packages (from django-mongodb-engine==0.6.0) (1.8.0)
Installing collected packages: pymongo, django-mongodb-engine
Running setup.py install for django-mongodb-engine ... done
Successfully installed django-mongodb-engine-0.6.0 pymongo-3.8.0
PS D:\dvp\rssnews\rssdesign>
Try to restart server again,
PS D:\dvp\rssnews\rssdesign> python manage.py runserver
Traceback (most recent call last):
File "manage.py", line 21, in
main()
File "manage.py", line 17, in main
execute_from_command_line(sys.argv)
File "C:\Users\apeng\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\core\management\__init__.py", line 399, in execute_from_command_line
utility.execute()
File "C:\Users\apeng\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\core\management\__init__.py", line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "C:\Users\apeng\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\core\management\__init__.py", line 261, in fetch_command
commands = get_commands()
File "C:\Users\apeng\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\core\management\__init__.py", line 107, in get_commands
apps = settings.INSTALLED_APPS
File "C:\Users\apeng\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\conf\__init__.py", line 54, in __getattr__
self._setup(name)
File "C:\Users\apeng\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\conf\__init__.py", line 50, in _setup
self._configure_logging()
File "C:\Users\apeng\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\conf\__init__.py", line 72, in _configure_logging
from django.utils.log import DEFAULT_LOGGING
File "C:\Users\apeng\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\utils\log.py", line 7, in
from django.views.debug import ExceptionReporter, get_exception_reporter_filter
File "C:\Users\apeng\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\views\debug.py", line 12, in
from django.template import Template, Context, TemplateDoesNotExist
File "C:\Users\apeng\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\template\__init__.py", line 53, in
from django.template.base import (ALLOWED_VARIABLE_CHARS, BLOCK_TAG_END,
File "C:\Users\apeng\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\template\base.py", line 19, in
from django.utils.html import escape
File "C:\Users\apeng\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\utils\html.py", line 14, in
from .html_parser import HTMLParser, HTMLParseError
File "C:\Users\apeng\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\utils\html_parser.py", line 12, in
HTMLParseError = _html_parser.HTMLParseError
AttributeError: module 'html.parser' has no attribute 'HTMLParseError'
Looks like I need to have fresh installation.
1 comment:
Finally, I got it work now.
The "django-norel" was already outdated.
Now, I use "djongo". The package name is tricky.
Post a Comment