python manage.py runserver error max recursion error

python manage.py runserver error max recursion error

jainsaniyajainsaniya Posts: 1Questions: 0Answers: 0

i am making a simple website with django, using django==2.2.7 on windows(python 3.7). the error is:

F:\Arduino\my_new_django_folder\my_blog\blog>python manage.py runserver
Watching for file changes with StatReloader
Performing system checks...

Exception in thread django-main-thread:
Traceback (most recent call last):
File "C:\Users\Jigam\AppData\Local\Programs\Python\Python37\lib\threading.py", line 926, in _bootstrap_inner
self.run()
File "C:\Users\Jigam\AppData\Local\Programs\Python\Python37\lib\threading.py", line 870, in run
self._target(*self._args, self._kwargs)
File "C:\Users\Jigam\AppData\Local\Programs\Python\Python37\lib\site-packages\django\utils\autoreload.py", line 54, in wrapper
fn(*args, **kwargs)
File "C:\Users\Jigam\AppData\Local\Programs\Python\Python37\lib\site-packages\django\core\management\commands\runserver.py", line 117, in inner_run
self.check(display_num_errors=True)
File "C:\Users\Jigam\AppData\Local\Programs\Python\Python37\lib\site-packages\django\core\management\base.py", line 390, in check
include_deployment_checks=include_deployment_checks,
File "C:\Users\Jigam\AppData\Local\Programs\Python\Python37\lib\site-packages\django\core\management\base.py", line 377, in _run_checks
return checks.run_checks(
kwargs)
File "C:\Users\Jigam\AppData\Local\Programs\Python\Python37\lib\site-packages\django\core\checks\registry.py", line 72, in run_checks
new_errors = check(app_configs=app_configs)
File "C:\Users\Jigam\AppData\Local\Programs\Python\Python37\lib\site-packages\django\core\checks\urls.py", line 40, in check_url_namespaces_unique
all_namespaces = _load_all_namespaces(resolver)
File "C:\Users\Jigam\AppData\Local\Programs\Python\Python37\lib\site-packages\django\core\checks\urls.py", line 67, in _load_all_namespaces
namespaces.extend(_load_all_namespaces(pattern, current))
File "C:\Users\Jigam\AppData\Local\Programs\Python\Python37\lib\site-packages\django\core\checks\urls.py", line 67, in _load_all_namespaces
namespaces.extend(_load_all_namespaces(pattern, current))
File "C:\Users\Jigam\AppData\Local\Programs\Python\Python37\lib\site-packages\django\core\checks\urls.py", line 67, in _load_all_namespaces
namespaces.extend(_load_all_namespaces(pattern, current))
[Previous line repeated 983 more times]
File "C:\Users\Jigam\AppData\Local\Programs\Python\Python37\lib\site-packages\django\core\checks\urls.py", line 59, in _load_all_namespaces
':'.join(parents + (url.namespace,)) for url in url_patterns
File "C:\Users\Jigam\AppData\Local\Programs\Python\Python37\lib\site-packages\django\core\checks\urls.py", line 60, in <listcomp>
if getattr(url, 'namespace', None) is not None
RecursionError: maximum recursion depth exceeded while calling a Python object
The code is just a basic code with HttpResponse.

Replies

  • colincolin Posts: 15,142Questions: 1Answers: 2,586

    That doesn't look like a problem with DataTables, more of a generic Django/Python issue. It would be worth posting on StackOverflow instead.

    Colin

This discussion has been closed.