2013-07-06 07:55:29 +00:00
=========================================
2013-05-18 11:00:51 +00:00
Welcome to django-admin2's documentation!
=========================================
2013-07-06 07:55:29 +00:00
.. image :: https://travis-ci.org/pydanny/django-admin2.png
:alt: Build Status
:target: https://travis-ci.org/pydanny/django-admin2
**Warning:** This project is currently in an **alpha** state and currently not meant for real projects.
One of the most useful parts of `` django.contrib.admin `` is the ability to configure various views that touch and alter data. django-admin2 is a complete rewrite of that library using modern Class-Based Views and enjoying a design focused on extendibility and adaptability. By starting over, we can avoid the legacy code and make it easier to write extensions and themes.
2013-05-19 08:15:50 +00:00
**django-admin2** aims to replace django's built-in admin that lives in
2013-07-06 07:55:29 +00:00
`` django.contrib.admin `` . Come and help us, read the :doc: `design` and
:doc: `contributing` pages, and visit the `GitHub`_ project.
2013-05-18 11:05:19 +00:00
2013-05-19 08:15:50 +00:00
This project is intentionally backwards-incompatible with `` django.contrib.admin `` .
2013-07-06 07:55:29 +00:00
Features
2013-05-19 08:17:45 +00:00
=============
2013-07-06 07:55:29 +00:00
* Rewrite of the Django Admin backend
* Drop-in themes
* Built-in RESTful API
2013-05-19 08:15:50 +00:00
2013-05-31 08:21:02 +00:00
2013-05-18 11:30:45 +00:00
Basic API
==============
2013-07-06 07:55:29 +00:00
If you've worked with Django, this implementation should look familiar:
2013-05-18 11:30:45 +00:00
.. code-block :: python
2013-05-30 10:33:00 +00:00
# myapp/admin2.py
2013-05-18 16:09:59 +00:00
# Import your custom models
from django.contrib.auth.forms import UserCreationForm, UserChangeForm
from django.contrib.auth.models import User
2013-05-18 11:30:45 +00:00
2013-06-30 09:38:39 +00:00
from .models import Post, Comment
2013-05-18 16:09:59 +00:00
import djadmin2
2013-05-18 11:30:45 +00:00
2013-05-31 06:57:25 +00:00
class UserAdmin2(djadmin2.ModelAdmin2):
2013-05-18 16:09:59 +00:00
create_form_class = UserCreationForm
update_form_class = UserChangeForm
# Register each model with the admin
djadmin2.default.register(Post)
djadmin2.default.register(Comment)
djadmin2.default.register(User, UserAdmin2)
2013-05-18 11:30:45 +00:00
2013-05-30 10:33:00 +00:00
.. _GitHub: https://github.com/twoscoops/django-admin2
2013-05-18 11:05:19 +00:00
Content
-------
2013-05-18 11:00:51 +00:00
.. toctree ::
:maxdepth: 2
2013-07-06 07:55:29 +00:00
installation
2013-05-18 11:05:19 +00:00
contributing
2013-05-18 11:53:16 +00:00
design
2013-05-22 15:37:02 +00:00
tutorial
2013-05-18 11:00:51 +00:00
2013-06-01 16:02:01 +00:00
Reference
-----------
.. toctree ::
:maxdepth: 2
2013-07-06 07:55:29 +00:00
ref/themes
ref/api
2013-06-01 16:02:01 +00:00
ref/actions
ref/forms
ref/permissions
2013-06-01 17:04:51 +00:00
ref/views
2013-07-06 07:55:29 +00:00
ref/built-in-views
ref/meta
2013-05-19 08:17:45 +00:00
2013-05-18 11:00:51 +00:00
Indices and tables
==================
* :ref: `genindex`
* :ref: `search`