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.

Changes between Version 5 and Version 6 of Ticket #7274, comment 1


Ignore:
Timestamp:
05/28/12 11:41:31 (12 years ago)
Author:
atarkowska
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7274, comment 1

    v5 v6  
    1717 
    1818{{{ 
    19 {% static "3rdparty/jquery-1.7.2.js" %} 
     19<script type="text/javascript" src="{% static "3rdparty/jquery-1.7.2.js" %}"></script> 
    2020}}} 
    2121 
     
    3535'''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. 
    3636 
    37 or use context processor for setting "global" variable.   
     37or use context processor for setting "global" variable. 
    3838 
     39[[BR]] 
     40[[BR]] 
     41 
     42== Using STATICS in views methods: == 
     43 
     44{{{ 
     45from django.conf import settings 
     46'<script type="text/javascript" src="%s3rdparty/jquery-1.7.2.js"></script>' % settings.STATIC_URL 
     47}}} 
    3948 
    4049[[BR]] 
     
    4453 
    4554The 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 
    4656{{{ 
    4757$ bin/omero config set omero.web.debug True 
    4858}}} 
     59 
    4960That's because this view is grossly inefficient and probably insecure. '''This is only intended for local development, and should never be used in production'''. 
    5061 
     
    5465== Config changes: == 
    5566 
    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 
    5769{{{ 
    5870$ 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.)

We're Hiring!