maximum recursion depth exceeded while calling a Python objec code example

Example 1: recursionerror maximum recursion depth

sys.setrecursionlimit(1500)

Example 2: RecursionError: maximum recursion depth exceeded while calling a Python object

""" The program had called a function repeatedly and hasn't came to an end. """

""" What not to do: """
def test(i):
  if i == 1:
    return 1
  else:
    return test(i + 1)

Example 3: recursionerror maximum recursion depth exceeded while calling a python object in django

You seem to be including blogapp.urls inside itself. Doesn't sound like a good idea.