Thanks for the help, I made the corrections n I still gets error AttributeError: module 'polls.views' has no attribute 'index'. On May 23, 2018 1:46 PM, "James Farris" <jamesafar...@gmail.com> wrote:
> I assume you mean TemplateDoesNotExist and I also assume you have created > a templates folder in your project and have details.html in it. > > If that’s the case did you check your settings.py for your template > settings? > > It should look something like this. > > TEMPLATES = [ { 'BACKEND': 'django.template.backends. > django.DjangoTemplates', 'DIRS': [os.path.join(BASE_DIR, 'templates'), ], > 'APP_DIRS': True, > ...More code here... > > On Wed, May 23, 2018 at 3:16 AM Umar Kambala <umarkamb...@gmail.com> > wrote: > >> Yes its spelled correctly on the command window its telling me >> TemplateDoesNotExit: polls/detail.html >> On May 23, 2018 9:58 AM, "tango ward" <tangowar...@gmail.com> wrote: >> >> Check if your template name is correct in your views.py >> >> On Wed, May 23, 2018 at 5:56 PM, Umar Kambala <umarkamb...@gmail.com> >> wrote: >> >>> Plz need help >>> I found this problem TemplateDoesNotExit at /polls/1/ where might have I >>> gone wrong? >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Django users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to django-users+unsubscr...@googlegroups.com. >>> To post to this group, send email to django-users@googlegroups.com. >>> Visit this group at https://groups.google.com/group/django-users. >>> To view this discussion on the web visit https://groups.google.com/d/ >>> msgid/django-users/CAPkbFbZwVPyBpVsA65UTjeJNgKHnQ >>> qpsTVmOmeO5GFeusnVfww%40mail.gmail.com >>> <https://groups.google.com/d/msgid/django-users/CAPkbFbZwVPyBpVsA65UTjeJNgKHnQqpsTVmOmeO5GFeusnVfww%40mail.gmail.com?utm_medium=email&utm_source=footer> >>> . >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to django-users+unsubscr...@googlegroups.com. >> To post to this group, send email to django-users@googlegroups.com. >> Visit this group at https://groups.google.com/group/django-users. >> To view this discussion on the web visit https://groups.google.com/d/ >> msgid/django-users/CAA6wQLLkxWQd3wDOMPNDEAPPNeTfV >> JhU7L1GP4au75yrU6Bcuw%40mail.gmail.com >> <https://groups.google.com/d/msgid/django-users/CAA6wQLLkxWQd3wDOMPNDEAPPNeTfVJhU7L1GP4au75yrU6Bcuw%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to django-users+unsubscr...@googlegroups.com. >> To post to this group, send email to django-users@googlegroups.com. >> Visit this group at https://groups.google.com/group/django-users. >> To view this discussion on the web visit https://groups.google.com/d/ >> msgid/django-users/CAPkbFbZmHibrrij317hQeczBiWqFB >> _QexEZFxKcko2qpsbzEww%40mail.gmail.com >> <https://groups.google.com/d/msgid/django-users/CAPkbFbZmHibrrij317hQeczBiWqFB_QexEZFxKcko2qpsbzEww%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/django-users/CAE-E-_3n7kHV2N9tYLbC1XeANQXXN4eyM- > Y3-jZetfZSxnmxbw%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAE-E-_3n7kHV2N9tYLbC1XeANQXXN4eyM-Y3-jZetfZSxnmxbw%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPkbFbau6sqfA4DLvEdwL3puM0cXwACvJxZ7i1_M-gEM0F-ifA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.