i read this page : https://docs.djangoproject.com/en/1.4/topics/forms/media
but i don't understand how those files gets rendered into the page template
is it our responsibility when creating template files to make sure those
form media files gets rendered ?
if we take django/contrib/admin/templat
On Wednesday, February 20, 2013 11:51:38 AM UTC+2, Tom Evans wrote:
>
> On Tue, Feb 19, 2013 at 9:07 PM, yakoub abaya
> >
> wrote:
> > i read this page :
> https://docs.djangoproject.com/en/1.4/topics/forms/media
> > but i don't understand how thos
can someone please explain where and how this template :
django/contrib/comments/templates/comments/list.html
gets rendered into the main page html template ?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and sto
> {% render_comment_list for [object] %}
>
> For example:
>
> {% render_comment_list for event %}
>
> This will render comments using a template named comments/list.html, a
> default version of which is included with Django.
>
> Sincerely,
> Pankaj Singh
>
i read about template inheritance and think it is great
but there is the possibility of including one template output as context
variable for another template
for example :
*
c = new RequestContest()
c['navigation'] = render_to_string('navigation.html', {'links': links})
output = render_to_respon
it is very simple and doesn't require a separate http server like nginx
first you configure in settings.py the variables STATIC_ROOT and
STATIC_URL, then configure http server accordingly
STATIC_ROOT is the absolute path in filesystem that stores your static
files, you can put that inside djang
6 matches
Mail list logo