Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » Django
  • » 'Site administration' heading in django admin interface [RSS Feed]

#1 Oct. 27, 2005 16:06:55

E.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

'Site administration' heading in django admin interface


Hi,
I'm using django automatic admin interface as (only) web-interface for
a little application already in production/testing . I customized a
bit the main admin page using "django-admin.py adminindex" output but
I'm not able to remove the heading "Site administration" on top of it
because it is embedded in django code,
contrib/admin/views/main.py :
...
def index(request):
return render_to_response('admin/index', {'title': 'Site
administration'}, context_instance=Context
...

I don't like touching django code code for now, so is it possible to
remove or customize that heading from user side?

Thanks,

Emanuele

: I hope to release it freely soon, just as an example of django
capabilities for newbies like me. Stay tuned.

Offline

#2 Oct. 27, 2005 23:16:37

Ian H.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

'Site administration' heading in django admin interface


Have you tried modifying/copying the file
$SRC//django/contrib/admin/templates/admin/base.html

if you modifiy your project settings file you can override this by
simply placing a file called
admin/base.html into your own template directory (before the standard one)

Cheers
Ian

On 10/28/05, Emanuele <> wrote:
>
> Hi,
> I'm using django automatic admin interface as (only) web-interface for
> a little application already in production/testing . I customized a
> bit the main admin page using "django-admin.py adminindex" output but
> I'm not able to remove the heading "Site administration" on top of it
> because it is embedded in django code,
> contrib/admin/views/main.py :
> ...
> def index(request):
> return render_to_response('admin/index', {'title': 'Site
> administration'}, context_instance=Context
> ...
>
> I don't like touching django code code for now, so is it possible to
> remove or customize that heading from user side?
>
> Thanks,
>
> Emanuele
>
> : I hope to release it freely soon, just as an example of django
> capabilities for newbies like me. Stay tuned.
>
>


--
-- ++61-3-9877-0909
If everything seems under control, you're not going fast enough. -
Mario Andretti

Offline

#3 Oct. 28, 2005 00:10:14

E.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

'Site administration' heading in django admin interface


OK, solved!
I copied contrib/admin/templates/admin/base.html to my local admin
directory of templates and commented out this line:
{% if title %}<h1>{{ title }}</h1>{% endif %}
and that's it.

Thanks a lot,

Emanuele

Offline

  • Root
  • » Django
  • » 'Site administration' heading in django admin interface [RSS Feed]

Board footer

Moderator control

Enjoy the 18th of November
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support