Thanks for the help,
After making that corrections, I have another error which is

'APP_DIRS': True,
SyntaxError: invalid syntax
Need more help
On Jun 3, 2018 11:37 AM, "刘家伟" <[email protected]> wrote:

> Django need template dir to store your html ,so in the setting.py , you
> shuold set the template dir like this:
>
> TEMPLATES = [
>     {
>         'BACKEND': 'django.template.backends.django.DjangoTemplates',
>         'DIRS': [os.path.join(BASE_DIR, 'template')]
>         ,
>         'APP_DIRS': True,
>         'OPTIONS': {
>             'context_processors': [
>                 'django.template.context_processors.debug',
>                 'django.template.context_processors.request',
>                 'django.contrib.auth.context_processors.auth',
>                 'django.contrib.messages.context_processors.messages',
>             ],
>         },
>     },
> ]
>
> and  it is in root path of your project
>
> 2018-06-03 18:20 GMT+08:00 Umar Kambala <[email protected]>:
>
>> Please I have a problem, after successfully going through the django
>> polls and having results, and now wans to run a tuturial on a web
>> development, wen I  runserver I gets errors. I don't really understand
>> where the problem is. The problem is "NameError:name 'template' is not
>> defined"
>> On Jun 1, 2018 4:22 PM, "Carlton Gibson" <[email protected]>
>> wrote:
>>
>>> Details are available on the Django project weblog:
>>> https://www.djangoproject.com/weblog/2018/jun/01/bugfix-release/
>>>
>>> --
>>> 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 [email protected].
>>> To post to this group, send email to [email protected].
>>> Visit this group at https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>> gid/django-users/7d59d8c3-cc5b-4ecc-ac23-ce1fcb64d5ac%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/7d59d8c3-cc5b-4ecc-ac23-ce1fcb64d5ac%40googlegroups.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 [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit https://groups.google.com/d/ms
>> gid/django-users/CAPkbFbZ20jqjLVTZgJmg7busKczCpZUj3xDjkYeR3h
>> aeWj%3DcYA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAPkbFbZ20jqjLVTZgJmg7busKczCpZUj3xDjkYeR3haeWj%3DcYA%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 [email protected].
> To post to this group, send email to [email protected].
> 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/CAH_QYw5%2Brq_Mc%2BLjT4KW8ZS4Q9HK%
> 2B38JwqBkxRdapK6sNte6kw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAH_QYw5%2Brq_Mc%2BLjT4KW8ZS4Q9HK%2B38JwqBkxRdapK6sNte6kw%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 [email protected].
To post to this group, send email to [email protected].
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/CAPkbFbZUm5GhOJ8%3DGHi0zCsZuCfc%2BT9s1-GqPGpiaSdedptV3Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to