Ticket #15030: modeladmin-media-definitions.diff

File modeladmin-media-definitions.diff, 886 bytes (added by Silva, 14 years ago)

ModelAdmin media docs don't mention STATIC_URL

  • docs/ref/contrib/admin/index.txt

     
    10431043            }
    10441044            js = ("my_code.js",)
    10451045
    1046 Keep in mind that this will be prepended with ``MEDIA_URL``. The same rules
    1047 apply as :doc:`regular media definitions on forms </topics/forms/media>`.
     1046As part of the introduction of the
     1047:doc:`staticfiles app </ref/contrib/staticfiles>` this will be prepending the the new :setting:`STATIC_URL` and if this is ``None`` Django will fallback to :setting:`MEDIA_URL` setting. The same rules apply as :doc:`regular media definitions on forms </topics/forms/media>`.
    10481048
    10491049Django admin Javascript makes use of the `jQuery`_ library. To avoid
    10501050conflict with user scripts, Django's jQuery is namespaced as
Back to Top