tags:

views:

46

answers:

4

How can I make LadyGagaApp into "Lady Gaga App" when displayed in Admin. Option #1 is to explain how to make this happen in the definition of the app, or in settings, or in init, etc. Option #2 is to point me to the admin template page where this can be overridden with an example.

Many thanks all.

/Joe

A: 

MYYN is right, open the class "Meta" inside of your model, and set "verbose_name" to "Lady Gaga App."

Josh
If you like an answer, **VOTE FOR IT**.
tylerl
@Josh: that would only change the name of the _model_, not the _app_.
Manoj Govindan
A: 

This is not possible right now. There is a Django ticket open for this.

Manoj Govindan
A: 

Answering second half of question...

Override the index.html admin template in django/contrib/admin/templates/admin by placing a copy of this file in an admin/ subdirectory of your templates folder.

Then find the following code (in a couple different places)...

{% blocktrans with app.name as name %}

and modify similar to the below...

{% blocktrans with 'Lady Gaga Web App' as name %}

Voila.

sansjoe
A: 

I think this may work:

http://packages.python.org/django-admin-tools/0.3.0/index.html

diegueus9