Django Admin Page Edit App Names

Hi everyone.

I would like to change the name of the application “EXAMRESULTS” by putting a space in between the two words so it appears as “EXAM RESULTS” on the Django admin web page.

How can I manage to accomplish this on the following Django web page:

admin

1 Like

You can change the display of your model names using on Admin Interface using verbose_name and verbose_name_plural properties and model fields names using keyword argument verbose_name .

class Country(models.Model):
    name = models.CharField(max_length=100, null=False, blank=False, help_text="Your country", verbose_name="name")
    userid = models.ForeignKey(User, on_delete=models.CASCADE)

    def __str__(self):
        return "Country " + str(self.id) + " - " + self.name

    class Meta:
        verbose_name = "Country"
        verbose_name_plural = "Countries"
1 Like

For renaming the app (and not the model), you can set the verbose_name attribute on the AppConfig object for that application.

2 Likes

Thank you both for your assistance! I managed to make the desired changes.