Python 3.x Django Views.py安装程序
我得到一个递归错误:调用python对象时超过了最大递归深度Python 3.x Django Views.py安装程序,python-3.x,django,django-templates,Python 3.x,Django,Django Templates,我得到一个递归错误:调用python对象时超过了最大递归深度 enter code here from django.shortcuts import render enter code here from .models import Topic enter code here def index(request): enter code here """The home page for Learning Log."""
enter code here from django.shortcuts import render
enter code here from .models import Topic
enter code here def index(request):
enter code here """The home page for Learning Log."""
enter code here return render(request, 'learning_logs/indec.html', {})
enter code here def topics(request):
enter code here """Show all topics."""
enter code here topics = Topic.objects.order_by('date_added')
enter code here context = {'topics' : topics}
enter code here return render(request, 'learning_logs/topics.html', context)