mirror of
https://github.com/jazzband/django-admin2.git
synced 2026-04-08 17:01:04 +00:00
moar definitions of how this is going to work
This commit is contained in:
parent
80451d7c73
commit
4aeb55be89
1 changed files with 21 additions and 3 deletions
24
README.rst
24
README.rst
|
|
@ -9,7 +9,7 @@ Basic Pattern
|
|||
|
||||
Our goal is to make this API work:
|
||||
|
||||
.. code-block::
|
||||
.. code-block:: python
|
||||
|
||||
# myapp/admin2.py
|
||||
|
||||
|
|
@ -21,6 +21,24 @@ Our goal is to make this API work:
|
|||
|
||||
# Instantiate the Admin2 class
|
||||
# Then attach the admin2 object to your model
|
||||
Post.admin2 = Admin()
|
||||
Post.admin2 = Admin2()
|
||||
|
||||
.. note:: You will notice a difference between how and django.contrib.admin and django-admin2 do configuration. The former associates the configuration class with the model object via a registration utility, and the latter does so by adding the configuration class as an attribute of the model object.
|
||||
.. note:: You will notice a difference between how and django.contrib.admin and django-admin2 do configuration. The former associates the configuration class with the model object via a registration utility, and the latter does so by adding the configuration class as an attribute of the model object.
|
||||
|
||||
Themes
|
||||
========
|
||||
|
||||
The default theme is whatever bootstrap is most current. Specifically:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
ADMIN2_THEME_DIRECTORY = "/admin2/bootstrap/"
|
||||
|
||||
If you create a new theme, please define it thus:
|
||||
|
||||
ADMIN2_THEME_DIRECTORY = "/admin2/foundation/"
|
||||
|
||||
REST API
|
||||
==========
|
||||
|
||||
We plan to expose a REST API using Django Rest Framework. From this, you can define new themes powered by the client framework of your choice.
|
||||
Loading…
Reference in a new issue