First of all what you did was wrong. You would have kept a Django 2.2 project in its own environment and installed the new Django version in a new environment. Another thing I would advice you is to use the latest version of python which is 3.8.4 I think with the latest version of Django. It works best there. To be on the safe side I would Advise you to rebuild your django 2.2 project with Django 3.8.4 or 3.1 because a lot has changed in these versions just fixing a single bug won’t help you will run into another one thereafter. So just do it again.
On Thu, 30 Jul 2020 at 12:24 Mira <mirathe...@gmail.com> wrote: > Hi All, > I recently upgraded Django from 2.2 to 3 on my MacOS10.13. > I am using Python 3.6 and My Application was working fine with Django 2.2 > but now i am getting below error. > > Any help related with this topic would be greatly appreciated. > > $>python3 manage.py runserver > > Watching for file changes with StatReloader > > Performing system checks... > > > Traceback (most recent call last): > > File "manage.py", line 22, in <module> > > execute_from_command_line(sys.argv) > > File > "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/core/management/__init__.py", > line 401, in execute_from_command_line > > utility.execute() > > File > "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/core/management/__init__.py", > line 395, in execute > > self.fetch_command(subcommand).run_from_argv(self.argv) > > File > "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/core/management/base.py", > line 328, in run_from_argv > > self.execute(*args, **cmd_options) > > File > "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/core/management/commands/runserver.py", > line 60, in execute > > super().execute(*args, **options) > > File > "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/core/management/base.py", > line 369, in execute > > output = self.handle(*args, **options) > > File > "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/core/management/commands/runserver.py", > line 95, in handle > > self.run(**options) > > File > "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/core/management/commands/runserver.py", > line 102, in run > > autoreload.run_with_reloader(self.inner_run, **options) > > File > "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/utils/autoreload.py", > line 599, in run_with_reloader > > start_django(reloader, main_func, *args, **kwargs) > > File > "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/utils/autoreload.py", > line 584, in start_django > > reloader.run(django_main_thread) > > File > "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/utils/autoreload.py", > line 299, in run > > self.run_loop() > > File > "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/utils/autoreload.py", > line 305, in run_loop > > next(ticker) > > File > "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/utils/autoreload.py", > line 345, in tick > > for filepath, mtime in self.snapshot_files(): > > File > "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/utils/autoreload.py", > line 361, in snapshot_files > > for file in self.watched_files(): > > File > "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/utils/autoreload.py", > line 260, in watched_files > > yield from iter_all_python_module_files() > > File > "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/utils/autoreload.py", > line 105, in iter_all_python_module_files > > return iter_modules_and_files(modules, frozenset(_error_files)) > > File > "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/utils/autoreload.py", > line 141, in iter_modules_and_files > > resolved_path = path.resolve(strict=True).absolute() > > TypeError: resolve() got an unexpected keyword argument 'strict' > > udaysingh@udays-MacBook-Pro:~/Django/dreamProj> > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CAANDXNtvg9sP5OqLktcECco1MhpV0%3DcMgYCKvAF0TLXAH9bpog%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAANDXNtvg9sP5OqLktcECco1MhpV0%3DcMgYCKvAF0TLXAH9bpog%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- null -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAF7uUam8ve1Pit9MYvPjsyLu-rAkJGar-8e98yLH5AyRfWRmPg%40mail.gmail.com.