Changes between Version 10 and Version 11 of AJAXForeignKey


Ignore:
Timestamp:
05/20/07 19:49:03 (8 years ago)
Author:
Michael Axiak <axiak@…>
Comment:

Made YUI source external.

Legend:

Unmodified
Added
Removed
Modified
  • AJAXForeignKey

    v10 v11  
    2929=== Creating {{{ base_templates/admin/base_site.html }}} ===
    3030
    31 Put the contents below in the file, but be wary of where yui is on your setup.
     31Put the contents below in a place locatable by {{{'admin/base_site.html'}}} in your setup.
     32(It certainly does not need to be inside Django's source.)
    3233
    3334{{{
     
    3637
    3738{% block extrahead %}{{ block.super }}
    38 <script type="text/javascript" src="/media/scripts/yui/yahoo/yahoo-min.js"></script>
    39 <script type="text/javascript" src="/media/scripts/yui/yahoo-dom-event/yahoo-dom-event.js"></script>
    40 <script type="text/javascript" src="/media/scripts/yui/dom/dom-min.js"></script>
    41 <script type="text/javascript" src="/media/scripts/yui/connection/connection-min.js"></script>
    42 <script type="text/javascript" src="/media/scripts/yui/animation/animation-min.js"></script>
    43 <script type="text/javascript" src="/media/scripts/yui/autocomplete/autocomplete-min.js"></script>
    44 <script type="text/javascript" src="/media/scripts/json.js"></script>
     39<script type="text/javascript" src="http://yui.yahooapis.com/2.2.2/build/yahoo/yahoo-min.js"></script>
     40<script type="text/javascript" src="http://yui.yahooapis.com/2.2.2/build/yahoo-dom-event/yahoo-dom-event.js"></script>
     41<script type="text/javascript" src="http://yui.yahooapis.com/2.2.2/build/dom/dom-min.js"></script>
     42<script type="text/javascript" src="http://yui.yahooapis.com/2.2.2/build/connection/connection-min.js"></script>
     43<script type="text/javascript" src="http://yui.yahooapis.com/2.2.2/build/animation/animation-min.js"></script>
     44<script type="text/javascript" src="http://yui.yahooapis.com/2.2.2/build/autocomplete/autocomplete-min.js"></script>
     45<script type="text/javascript" src="http://www.json.org/json.js"></script>
    4546{% endblock %}
    4647
     
    5455}}}
    5556
    56 Notice how YUI is in {{{"/media/scripts/yui"}}} and I downloaded [http://www.json.org/json.js json.js].
    5757
    5858=== Modify {{{urls.py}}} ===
Back to Top