Saturday, February 25, 2017

Re: "TemplateDoesNotExist at /"

wow, very good and thank you!    it was this mal-formed line:

 
       'DIRS': [ ( os.path.join(BASE_DIR, 'templates'), ) ],


which should have been:

        'DIRS': [ os.path.join(BASE_DIR, 'templates'),  ],

i had an extra set of parentheses, for whatever bad reason.  thanks again!

On Saturday, February 25, 2017 at 2:08:21 PM UTC-8, ludovic coues wrote:
yep, look like your settings are wrong
try to add that at the end of your settings.py and watch the console
you are using to launch django

    print(TEMPLATES["DIRS"])
    print(BASE_DIR)

2017-02-25 23:05 GMT+01:00 Richard Belew <rikb...@gmail.com>:
> another possibly relevant bit:  the Template-loader postmortem shows:
>
>> Django tried loading these templates, in this order:
>>
>> Using engine django:
>>
>> django.template.loaders.filesystem.Loader:
>> /Data/virtualenv/django/djggProj/('/Data/virtualenv/django/djggProj/templates',)/index.html
>> (Source does not exist)
>
>
> this error message has a badly formed path
> "/Data/virtualenv/django/djggProj/('/Data/virtualenv/django/djggProj/templates',)/index.html"
> ; should i care?
>
> --
> 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...@googlegroups.com.
> To post to this group, send email to django...@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/8fbefe48-945d-4f4a-9629-d8e59dfd23af%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.



--

Cordialement, Coues Ludovic
+336 148 743 42

--
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+unsubscribe@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/0208c448-b9e6-42ef-a460-628ba036a972%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment