form media (css+js)

2013-02-19 Thread yakoub abaya
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

Re: form media (css+js)

2013-02-20 Thread yakoub abaya
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

comment templates

2013-02-21 Thread yakoub abaya
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

Re: comment templates

2013-02-21 Thread yakoub abaya
> {% 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 >

template composition

2013-04-01 Thread yakoub abaya
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

Re: Confusion about Static Files

2013-04-01 Thread yakoub abaya
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