Thursday, July 30, 2020

Re: Django3 runserver error

The resolve() method dose not have the strict parameter anymore.

Regards

Le jeu. 30 juil. 2020 à 11:25, Mira <mirathebot@gmail.com> a écrit :
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAANDXNtvg9sP5OqLktcECco1MhpV0%3DcMgYCKvAF0TLXAH9bpog%40mail.gmail.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAP0vuur1YSp4ptXz%2BnLYAR7adzKLT%2BDRgSXmvvoWa-7DcR2PuQ%40mail.gmail.com.

No comments:

Post a Comment