Currently on page 3 of Python Django tutorial (Views and Templates)
The error has come up here:
from .models import Question
* > def index(request):
* > latest_question_list = Question.objects.order_by('-pub_date')[:5]
* > template = loader.get_template('polls/index.html')
* > context = {
* > 'latest_question_list': latest_question_list,
* > }
* > return HttpResponse(template.render(context, request))
The full error message comes up as: 'No module named ‘main.models’; ‘main’ is not a package. I’m not sure how to fix this, I’ve tried removing the ‘.’