From 1d037f27a2c4a69b275fef0d049af786d2897231 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Fri, 5 Jul 2013 13:59:46 -0700 Subject: [PATCH 1/2] Quick and dirty install/setup docs. --- README.rst | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/README.rst b/README.rst index 2194897..7ca760c 100644 --- a/README.rst +++ b/README.rst @@ -48,6 +48,47 @@ Requirements .. _django-rest-framework: https://github.com/tomchristie/django-rest-framework .. _Sphinx: http://sphinx-doc.org/ + + +Installation +============ +Use pip to install from PyPI: + +.. code-block:: python + + pip install django-admin2 + +Add djadmin2 to your settings.py file: + +.. code-block:: python + + INSTALLED_APPS = ( + ... + 'djadmin2', + ... + ) + +Add djadmin2 urls to your URLconf: + +.. code-block:: python + + # urls.py + from django.conf.urls import patterns, include + + import djadmin2 + + djadmin2.default.autodiscover() + + + urlpatterns = patterns( + ... + url(r'^admin2/', include(djadmin2.default.urls)), + ) + + + + + How to write django-admin2 modules ===================================== From 433fb51b6a27a6f3a884f47380feb8848bed3db8 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Fri, 5 Jul 2013 17:06:07 -0700 Subject: [PATCH 2/2] Add one more thing for rest framework --- README.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 7ca760c..f3e3ed3 100644 --- a/README.rst +++ b/README.rst @@ -58,13 +58,14 @@ Use pip to install from PyPI: pip install django-admin2 -Add djadmin2 to your settings.py file: +Add djadmin2 and rest_framework to your settings file: .. code-block:: python INSTALLED_APPS = ( ... 'djadmin2', + 'rest_framework', # for the browsable API templates ... )