diff options
| author | Thomas Grainger | 2012-08-20 13:35:46 +0100 |
|---|---|---|
| committer | Thomas Grainger | 2012-08-20 13:35:46 +0100 |
| commit | 189668eadd3f47d8c4a03ad2953b25a3a475a127 (patch) | |
| tree | 13966da3eae4b2a2d22d895e83ba66a885740778 /example | |
| parent | 119874f649e67e04ded3847fc166b9798af26a78 (diff) | |
| download | django-debug-toolbar-189668eadd3f47d8c4a03ad2953b25a3a475a127.tar.bz2 | |
use links to static files rather than direct inclusion, Fixes #307
Diffstat (limited to 'example')
| -rw-r--r-- | example/settings.py | 2 | ||||
| -rw-r--r-- | example/static/js/jquery.js (renamed from example/media/js/jquery.js) | 0 | ||||
| -rw-r--r-- | example/static/js/mootools.js (renamed from example/media/js/mootools.js) | 0 | ||||
| -rw-r--r-- | example/static/js/prototype.js (renamed from example/media/js/prototype.js) | 0 | ||||
| -rw-r--r-- | example/templates/jquery/index.html | 2 | ||||
| -rw-r--r-- | example/templates/mootools/index.html | 2 | ||||
| -rw-r--r-- | example/templates/prototype/index.html | 2 |
7 files changed, 5 insertions, 3 deletions
diff --git a/example/settings.py b/example/settings.py index c421a62..6fa3e56 100644 --- a/example/settings.py +++ b/example/settings.py @@ -17,6 +17,8 @@ INSTALLED_APPS = ( INTERNAL_IPS = ('127.0.0.1',) MEDIA_ROOT = os.path.join(PROJECT_PATH, 'media') MEDIA_URL = '/media' +STATIC_ROOT = os.path.join(HOME_ROOT, 'staticfiles') +STATIC_URL = '/static/' MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', diff --git a/example/media/js/jquery.js b/example/static/js/jquery.js index fa5132b..fa5132b 100644 --- a/example/media/js/jquery.js +++ b/example/static/js/jquery.js diff --git a/example/media/js/mootools.js b/example/static/js/mootools.js index 0098571..0098571 100644 --- a/example/media/js/mootools.js +++ b/example/static/js/mootools.js diff --git a/example/media/js/prototype.js b/example/static/js/prototype.js index 9fe6e12..9fe6e12 100644 --- a/example/media/js/prototype.js +++ b/example/static/js/prototype.js diff --git a/example/templates/jquery/index.html b/example/templates/jquery/index.html index 61b3cbe..9cab242 100644 --- a/example/templates/jquery/index.html +++ b/example/templates/jquery/index.html @@ -6,7 +6,7 @@ .hide {display:none;} #v {font-weight:bold;} </style> - <script type="text/javascript" charset="utf-8" src="{{ MEDIA_URL }}/js/jquery.js"></script> + <script type="text/javascript" charset="utf-8" src="{{ STATIC_URL }}/js/jquery.js"></script> <script type="text/javascript"> $(document).ready(function() { $('p.hide').show(); diff --git a/example/templates/mootools/index.html b/example/templates/mootools/index.html index fa12abe..dde019d 100644 --- a/example/templates/mootools/index.html +++ b/example/templates/mootools/index.html @@ -5,7 +5,7 @@ <style> .hide {display:none;} </style> - <script type="text/javascript" charset="utf-8" src="{{ MEDIA_URL }}/js/mootools.js"></script> + <script type="text/javascript" charset="utf-8" src="{{ STATIC_URL }}/js/mootools.js"></script> <script type="text/javascript"> window.addEvent('domready', function() { $$('p.hide').setStyle('display', 'block'); diff --git a/example/templates/prototype/index.html b/example/templates/prototype/index.html index bcc3141..bf3d0a5 100644 --- a/example/templates/prototype/index.html +++ b/example/templates/prototype/index.html @@ -5,7 +5,7 @@ <style> .hide {display:none;} </style> - <script type="text/javascript" charset="utf-8" src="{{ MEDIA_URL }}/js/prototype.js"></script> + <script type="text/javascript" charset="utf-8" src="{{ STATIC_URL }}/js/prototype.js"></script> <script type="text/javascript"> document.observe('dom:loaded', function() { $('showme').removeClassName('hide'); |
