Re: I know this question has been asked before, but I haven't found an answer that solves my situation. I'm looking at the Django tutorial, and I've set up the first URLs exactly as the tutorial has

2018-04-22 Thread Don Guernsey
Include app_name = ‘polls’ in urls.py > On Apr 22, 2018, at 10:14 AM, Avitab Ayan Sarmah > wrote: > > polls/views.py > from django.http import HttpResponse > > > def index(request): > return HttpResponse("Hello, world. You're at the polls index.") > > polls/urls.py > from django.urls im

I know this question has been asked before, but I haven't found an answer that solves my situation. I'm looking at the Django tutorial, and I've set up the first URLs exactly as the tutorial has it,

2018-04-22 Thread Avitab Ayan Sarmah
polls/views.py from django.http import HttpResponse def index(request): return HttpResponse("Hello, world. You're at the polls index.") polls/urls.py from django.urls import path from . import views urlpatterns = [ path('', views.index, name='index'),] mysite/urls.py from django.con