Re: How to add logo to django header

2017-08-15 Thread Volodymyr Kirichinets
Hi, You can do this with base_site.html just change all of You need. On Mon, Aug 14, 2017 at 5:17 PM, Yogesh Mishra wrote: > Thanx > > On Thursday, July 28, 2016 at 1:36:17 PM UTC+5:30, Gauri Shirsath wrote: >> >> Hi, >> >> I want to show company logo instead of 'Django Administrator' heading. >

Re: How to add logo to django header

2017-08-14 Thread Yogesh Mishra
Thanx On Thursday, July 28, 2016 at 1:36:17 PM UTC+5:30, Gauri Shirsath wrote: > > Hi, > > I want to show company logo instead of 'Django Administrator' heading. > Can someone please guide me. > > Regards, > Gauri > -- You received this message because you are subscribed to the Google Groups "D

Re: How to add logo to django header

2016-07-28 Thread ludovic coues
You are suggesting to alter the django library directly. This as two immediate bad effect. First, it make upgrading to newer and more secure version of django harder as the change will be overwritten by the upgrade. Second, if you want to keep your track of your change, using git for exemple, you

Re: How to add logo to django header

2016-07-28 Thread Volodymyr Kirichinets
If You want to change background of the header, Try this open : /you/path/to/python2.7/site-packages/django/contrib/admin/static/admin/css/base.css add h1 { . background:url("path/to/you/static/images/youlogo.png"); } -- You received t

Re: How to add logo to django header

2016-07-28 Thread Volodymyr Kirichinets
This if You want to change icon. -- 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 post to this group, send email to

Re: How to add logo to django header

2016-07-28 Thread Volodymyr Kirichinets
Hi, open /your/path/to/python2.7/site-packages/django/contrib/admin/templates/admin/base.html file add to top of file : And You get a logo! -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop rece

Re: How to add logo to django header

2016-07-28 Thread Siddharth Ghumre
Hi, Please follow the documentation on https://docs.djangoproject.com/en/1.9/ref/contrib/admin/#overriding-vs-replacing-an-admin-template The file you are looking for is base_site.html which you need to override to change the default 'Django Administrator' heading to your company logo. Hope this

Re: How to add logo to django header

2016-07-28 Thread Constantine Covtushenko
Hi Gauri, One of approach is would be to override admin base template used as a parent for all admin pages. Please see that documentation link about how to do that. Regards, On Thu, Jul 28, 2016 at 9:04 AM, Gau