Re: Change label/title from an application added to django admin
On 24/12/2012 9:02am, Emiliano Dalla Verde Marcozzi wrote:
> Hello, I created an app called 'emp' with the command:
> django-admin.py startapp emp. Then, i edited my models.py, added an
> admin.py file to register my clases/models in the django admin. Now,
> when i login into the django admin, i have a list of Applications,
> and it says 'Emp' in that list. I want to change 'Emp' for another
> word, for example, 'Employee', how can i do that in django 1.4 ?
> Thanks in advance, Emiliano.
The software is easy but the database might be a bit harder. In the
database the tablenames all begin with the app name followed by an
underscore and then the model name.
If it was me (and not knowing any better) I would replicate emp as
employee right alongside and change the source to nominate employee as
the app name. Add employee as another app and manage.py syncdb again.
That would give you a second app alongside emp in the admin.
Depending on how much data you have, you could dump from emp and load
into employee or simply re-enter your data.
When everything is working, drop emp.
Mike
>
> -- You received this message because you are subscribed to the Google
> Groups "Django users" group. To view this discussion on the web
> visit https://groups.google.com/d/msg/django-users/-/waP0XrU8ywwJ. To
> post to this group, send email to django-users@googlegroups.com. To
> unsubscribe from this group, send email to
> django-users+unsubscribe@googlegroups.com. For more options, visit
> this group at http://groups.google.com/group/django-users?hl=en.
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home