Added configuration and testing docs.

This commit is contained in:
Brandon Taylor
2014-08-20 23:57:01 -04:00
parent b031d458cd
commit 512440f9e5
15 changed files with 263 additions and 7 deletions
+14
View File
@@ -0,0 +1,14 @@
Configuring Django Admin Sortable
=================================
Configuring django-admin-sortable is quite simple:
1. Add ``adminsortable`` to your ``INSTALLED_APPS``.
2. Ensure ``django.core.context_processors.static`` is in your ``TEMPLATE_CONTEXT_PROCESSORS``.
Static Media
------------
django-admin-sortable includes a few CSS and JavaScript files. The preferred method of getting these files into your project is to use the `staticfiles app <https://docs.djangoproject.com/en/1.6/ref/contrib/staticfiles/>`_.
Alternatively, you can copy or symlink the ``adminsortable`` folder inside the ``static`` directory to the location you serve static files from.
+2
View File
@@ -36,6 +36,7 @@ What's New in |version|?
Contents:
---------
.. toctree::
:maxdepth: 2
@@ -45,6 +46,7 @@ Contents:
usage
django-cms
known-issues
testing
rationale
status
future
+12
View File
@@ -0,0 +1,12 @@
Testing
=======
Have a look at the included :doc:`/sample_project` directory to see a working project. The login credentials for admin are: admin/admin
When a model is sortable, a tool-area link will be added that says "Change Order". Click this link, and you will be taken to the custom view where you can drag-and-drop the records into order.
Inlines may be drag-and-dropped into any order directly from the change form.
Unit and functional tests may be found in the ``app/tests.py`` file and run via:
$ python manage.py test app