Skip to main content

Django admin enhancer

Project description

Translate app names and allow singletons

This is a simple Django app to enable translation of app names in
Django admin and allow the use of singletons.
When an object is marked as a singleton only one instance will be allowed to exist.

Detailed documentation is in the "docs" directory.

Quick start

1. Add "django_singleton_app_name" to your INSTALLED_APPS setting like this::


2. Copy templates from django-admin-app-names-singleton/templates
to your project's template directory.
All app names will now be translated when possible.
In order to add app names to .po files via "makemessages"
create a python file "" next to your "" file
and paste the following import into it:
"from django.utils.translation import ugettext_lazy as _".
For each app you want to mark for translation add a line such as the following:

3. To mark a model as a singleton you must subclass that model from
And create a ModelAdmin for that model that subclasses
and overwrite the ModelAdmin's member "model" with the Model's class
class ContactInformation(SingletonBaseModel):
address = models.CharField(max_length=65)
email = models.EmailField()

class ContactInfoAdmin(SingletonModelAdmin):
model = ContactInformation

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-admin-app-names-singleton, version 1.1
Filename, size File type Python version Upload date Hashes
Filename, size django-admin-app-names-singleton-1.1.win32.exe (206.6 kB) File type Windows Installer Python version any Upload date Hashes View
Filename, size (13.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page