Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
- Timestamp:
-
05/28/12 11:41:31 (12 years ago)
- Author:
-
atarkowska
- Comment:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v5
|
v6
|
|
17 | 17 | |
18 | 18 | {{{ |
19 | | {% static "3rdparty/jquery-1.7.2.js" %} |
| 19 | <script type="text/javascript" src="{% static "3rdparty/jquery-1.7.2.js" %}"></script> |
20 | 20 | }}} |
21 | 21 | |
… |
… |
|
35 | 35 | '''WARNING''': In every inherited template any code outside blocks redefinitions is not executed. So in this case {% load webclient_tags %} has to be called inside each block. |
36 | 36 | |
37 | | or use context processor for setting "global" variable. |
| 37 | or use context processor for setting "global" variable. |
38 | 38 | |
| 39 | [[BR]] |
| 40 | [[BR]] |
| 41 | |
| 42 | == Using STATICS in views methods: == |
| 43 | |
| 44 | {{{ |
| 45 | from django.conf import settings |
| 46 | '<script type="text/javascript" src="%s3rdparty/jquery-1.7.2.js"></script>' % settings.STATIC_URL |
| 47 | }}} |
39 | 48 | |
40 | 49 | [[BR]] |
… |
… |
|
44 | 53 | |
45 | 54 | The static files tools are mostly designed to help with getting static files successfully deployed into production. This usually means a separate, dedicated static file server, which is a lot of overhead to mess with when developing locally. Thus, the staticfiles app ships with a quick and dirty helper view that you can use to serve files locally in development. This will only work if DEBUG is True. |
| 55 | |
46 | 56 | {{{ |
47 | 57 | $ bin/omero config set omero.web.debug True |
48 | 58 | }}} |
| 59 | |
49 | 60 | That's because this view is grossly inefficient and probably insecure. '''This is only intended for local development, and should never be used in production'''. |
50 | 61 | |
… |
… |
|
54 | 65 | == Config changes: == |
55 | 66 | |
56 | | 1. STATICFILES_DIRS should be configurable from omero config command line by |
| 67 | 1. STATICFILES_DIRS should be configurable from omero config command line by |
| 68 | |
57 | 69 | {{{ |
58 | 70 | $ bin/omero config set omero.web.staticfile_dirs '[["alias", "/home/example.com/static/"], ["/opt/webfiles/common"]' |
1.3.13-PRO © 2008-2011
Agilo Software all
rights reserved
(this page was served in: 0.26446 sec.)