Re: Overriding admin template: index.html

2009-02-03 Thread Kenneth Gonsalves

On Wednesday 04 Feb 2009 1:18:53 pm knight wrote:
> I want to override admin template: index.html.
> I have found the template but not the view that renders it.
> Maybe someone know how django rendering index.html template and where
> I can find the view?

does this help?
http://docs.djangoproject.com/en/dev/ref/contrib/admin/#overriding-admin-templates

-- 
regards
KG
http://lawgon.livejournal.com

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Overriding admin template: index.html

2009-02-04 Thread knight

Hi,

Thanks for the fast reply.
I read this but I still cannot find the view that renders index.html.

Regards,
Arshavski Alexander

On Feb 4, 9:52 am, Kenneth Gonsalves  wrote:
> On Wednesday 04 Feb 2009 1:18:53 pm knight wrote:
>
> > I want to override admin template: index.html.
> > I have found the template but not the view that renders it.
> > Maybe someone know how django rendering index.html template and where
> > I can find the view?
>
> does this 
> help?http://docs.djangoproject.com/en/dev/ref/contrib/admin/#overriding-ad...
>
> --
> regards
> KGhttp://lawgon.livejournal.com
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Overriding admin template: index.html

2009-02-04 Thread James Bennett

On Wed, Feb 4, 2009 at 2:35 AM, knight  wrote:
> Thanks for the fast reply.
> I read this but I still cannot find the view that renders index.html.

You do not need to do anything to the view function. The view you're
looking for is designed so that you can place your own custom template
(named appropriately) in the right place and it'll be picked up
automatically.


-- 
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Overriding admin template: index.html

2009-02-04 Thread Kenneth Gonsalves

On Wednesday 04 Feb 2009 2:05:37 pm knight wrote:
> Thanks for the fast reply.
> I read this but I still cannot find the view that renders index.html.

well, according to this link, you do not need the view in order to override 
index.html of admin.

-- 
regards
KG
http://lawgon.livejournal.com

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Overriding admin template: index.html

2009-02-04 Thread knight

My problem is that I want to pass additional variables to index.html.
So I thought I can do it if I add these variables to view that renders
index.html.

Regards, Alex A.

On Feb 4, 10:55 am, Kenneth Gonsalves  wrote:
> On Wednesday 04 Feb 2009 2:05:37 pm knight wrote:
>
> > Thanks for the fast reply.
> > I read this but I still cannot find the view that renders index.html.
>
> well, according to this link, you do not need the view in order to override
> index.html of admin.
>
> --
> regards
> KGhttp://lawgon.livejournal.com
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---