Ignore:
Timestamp:
05/03/12 10:39:08 (8 years ago)
Author:
mnagni
Message:

Updated the urls.py in order to allow a static access to css/js/img. Anyway as specified in DJANGO manual

"Django itself doesn’t serve static (media) files, such as images, style sheets, or video. It leaves that job to whichever Web server you choose.
The reasoning here is that standard Web servers, such as Apache, lighttpd and Cherokee, are much more fine-tuned at serving static files than a Web application framework."

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mauRepo/MolesManager/trunk/src/MolesManager/static/templates/base.html

    r8120 r8137  
    2222    <title>{% block meta_title %}{% endblock %}{% if settings.SITE_TITLE %} | {{ settings.SITE_TITLE }}{% endif %}</title> 
    2323 
    24   <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/960/reset.css"  /> 
    25   <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/960/960_12_col.css"  /> 
    26   <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/960/text.css"  /> 
    27   <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/ceda.css"  /> 
     24  <link rel="stylesheet" type="text/css" href="/static/css/960/reset.css"  /> 
     25  <link rel="stylesheet" type="text/css" href="/static/css/960/960_12_col.css"  /> 
     26  <link rel="stylesheet" type="text/css" href="/static/css/960/text.css"  /> 
     27  <link rel="stylesheet" type="text/css" href="/static/css/ceda.css"  /> 
    2828  <link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/dojo/1.6/dijit/themes/claro/claro.css" /> 
    2929  <link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/dojo/1.5/dijit/themes/claro/layout/ContentPane.css" /> 
     
    134134                <div class="grid_12 whiteFill" id="footer"> 
    135135                        <div class="grid_12 alpha" id="footerLogos"> 
    136                                 <p><a href="http://www.ncas.ac.uk"><img src="{{ STATIC_URL }}img/ncas_logo_fullcolour.jpg" alt="NCAS logo" title="NCAS" align="left"/></a> 
    137                                 <a href="http://www.nceo.ac.uk"><img src="{{ STATIC_URL }}img/nceo_logo.jpg" alt="NCEO logo" title="NCEO" align="right"/></a></p> 
     136                                <p><a href="http://www.ncas.ac.uk"><img src="/static/img/ncas_logo_fullcolour.jpg" alt="NCAS logo" title="NCAS" align="left"/></a> 
     137                                <a href="http://www.nceo.ac.uk"><img src="/static/img/nceo_logo.jpg" alt="NCEO logo" title="NCEO" align="right"/></a></p> 
    138138                        </div> <!-- End div footerLogos--> 
    139139                        <div class="grid_6 push_3 whiteFill omega" id="footerStatements"> 
Note: See TracChangeset for help on using the changeset viewer.