May  be you forgot to tell django where it looks for your template
directory. To do this in your project directory go to setting and create a
variable like this;
TEMPLATE_DIR = os.path.join( BASE_DIR, 'templates')
Then locate TEMPLATES in your setting and put TEMPLATE_DIR variable in
DIRS, like this 'DIRS':[TEMPLATE_DIR]. and by convension your template
directory should be templates

On Friday, 6 March 2020, Philip Means <means....@gmail.com> wrote:

> I am new to web development.  Wanted to help my daughter with a simple
> website (she does pet portraits) and learn something that interests me.  I
> watched some you tube tutorials, then bought a book.  First couple simple
> projects went OK.  Then I got to templates and I have not been able to get
> the example project to work.  Been banging my head against the wall for
> about a week.  Part of the problem is my directory structure does not look
> like the authors and so I am not sure I am putting things in the right
> place. When I go searching for another explanation of how to set it up, I
> find that nobody seems to do it the same way.  Also, I find the jargon
> confusing.  At this point I just want to display a simple html page.  If
> this is in the wrong place, maybe someone can direct me to a better one.
>
> --
> 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 view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/fe83a557-759d-460d-96ec-2c7fd18117bb%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/fe83a557-759d-460d-96ec-2c7fd18117bb%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2B2NpNfP%2Brw1u3%3DdOq8vh3-SrFh3bpdjyfg0yARDjGej2tg%2Baw%40mail.gmail.com.

Reply via email to