Commits

David Jean Louis  committed d36ef5d

better doc for media and added the 'admin_tools' requirement in INSTALLED_APPS

  • Participants
  • Parent commits 14a545c

Comments (0)

Files changed (2)

File docs/configuration.rst

   
       cp -r /usr/local/lib/python2.6/dist-packages/admin_tools/media/admin_tools /path/to/yourproject/media/
 
+django-admin-tools will look for the media directory in the following 
+settings variables (and in this order):
+
+* ``ADMIN_TOOLS_MEDIA_URL``;
+* ``STATIC_URL``: use this if you are using django-staticfiles;
+* ``MEDIA_URL``.
+
+
+Here's an example config if you are using django development server:
+
+``urls.py``::
+
+    (r'^site_media/(?P<path>.*)$', 'django.views.static.serve',
+        {'document_root': '/path/to/media'}),
+
+``settings.py``::
+
+    MEDIA_URL = '/site_media/'
+
+
 Available settings variables
 ----------------------------
 
+``ADMIN_TOOLS_MEDIA_URL``
+    You can use this variable if you want to set the media url for 
+    django-admin-tools to something different from your ``MEDIA_URL``.
+
 ``ADMIN_TOOLS_MENU``
     The path to your custom menu class, for example 
     "yourproject.menu.CustomMenu".

File docs/quickstart.rst

         'django.core.context_processors.request',
     )
 
-Then, add the django-admin-tools modules to the ``INSTALLED_APPS`` like 
+Then, add admin_tools and its modules to the ``INSTALLED_APPS`` like 
 this::
 
     INSTALLED_APPS = (
+        'admin_tools',
         'admin_tools.theming',
         'admin_tools.menu',
         'admin_tools.dashboard',
     otherwise.
 
 django-admin-tools is modular, so if you want to disable a particular 
-module, just remove or comment it out in your ``INSTALLED_APPS``. 
+module, just remove or comment it out in your ``INSTALLED_APPS``, note 
+that ``admin_tools`` is required for i18n.
 
 
 Setting up the database