mirror of
https://github.com/jazzband/django-admin2.git
synced 2026-05-20 13:01:59 +00:00
Merge pull request #233 from chrisjones-brack3t/develop
Quick and dirty install/setup docs.
This commit is contained in:
commit
033e0124cf
1 changed files with 42 additions and 0 deletions
42
README.rst
42
README.rst
|
|
@ -48,6 +48,48 @@ Requirements
|
||||||
.. _django-rest-framework: https://github.com/tomchristie/django-rest-framework
|
.. _django-rest-framework: https://github.com/tomchristie/django-rest-framework
|
||||||
.. _Sphinx: http://sphinx-doc.org/
|
.. _Sphinx: http://sphinx-doc.org/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Installation
|
||||||
|
============
|
||||||
|
Use pip to install from PyPI:
|
||||||
|
|
||||||
|
.. code-block:: python
|
||||||
|
|
||||||
|
pip install django-admin2
|
||||||
|
|
||||||
|
Add djadmin2 and rest_framework to your settings file:
|
||||||
|
|
||||||
|
.. code-block:: python
|
||||||
|
|
||||||
|
INSTALLED_APPS = (
|
||||||
|
...
|
||||||
|
'djadmin2',
|
||||||
|
'rest_framework', # for the browsable API templates
|
||||||
|
...
|
||||||
|
)
|
||||||
|
|
||||||
|
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
|
How to write django-admin2 modules
|
||||||
=====================================
|
=====================================
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue