This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description
=====
django-singleton-admin
=====

This package provides a way to ensure singleton classes can only have one instance in the
Django admin panel. The package contains:

* admin.py, which defines the SingletonAdmin class, preventing adding if an instance already exists.
* templates/admin/singleton_enabled_base.html, which hides the relevant "add" buttons on the admin.

The admin.py file is taken directly from Mezzanine by Stephen McDonald,
https://bitbucket.org/stephenmcd/mezzanine/src/

The template file is taken from a talk at SyDjango by Stephen McDonald,
http://blog.jupo.org/2012/10/26/sydjango-talk-django-admin-missing-manual/


Requirements
--------------

See Mezzanine for more details.


Quick start
-----------

1. Add the app to your INSTALLED_APPS setting like this::

INSTALLED_APPS = (
...
'django_singleton_admin',
)

2. In your singleton model's admin.py file, register it with the admin using this class, e.g.::

from django_singleton_admin.admin import SingletonAdmin

class GlobalSettingsAdmin(SingletonAdmin):
pass

admin.site.register(BSGlobalSettings, GlobalSettingsAdmin)


3. Extend the admin template "admin/base_site.py" using the provided base instead of
of the usual "admin/base.html", i.e. using:

{% extends "admin/singleton_enabled_base.html" %}

Note that this template uses the "extrastyle" block, so if you also override that, you
will need to copy the contents of the provided template into your code instead.
(In that case you may not need to add the app to your installed apps either.)
Release History

Release History

0.0.4

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.0.3

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.0.2

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.0.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-singleton-admin-0.0.4.macosx-10.7-intel.exe (69.3 kB) Copy SHA256 Checksum SHA256 any Windows Installer Jun 28, 2013
django-singleton-admin-0.0.4.tar.gz (4.7 kB) Copy SHA256 Checksum SHA256 Source Jun 28, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting