On Tue, Aug 23, 2011 at 13:09, Gelonida N <gelon...@gmail.com> wrote: > I'm rather new to Django and just start working with a little more with > templates. > > I wondered how to make a distinction between html files and html templates. > > Shall I used different suffixes or is the directory location enough. > > If I don't have different file suffixes, how do you teach your editor, > when editing an html file and when editing a template file.
If say you have all the .html files in your templates/ folder, it should all be good. Suffix is .html Best practice I guess is to create as base.html which defines your structure, and say: (...) <div id="content"> {% block content %}{% endblock %} </div> (...) And later in another document you just define the content like this: {% extends "base.html" %} (...) {% block content %} Your custom content here. {% endblock %} (...) -- With regards, Herman Schistad -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.