Changeset 8138 for mauRepo


Ignore:
Timestamp:
05/03/12 11:53:24 (8 years ago)
Author:
mnagni
Message:

Parametrized the Moles_Manager_wsgi.conf
Updated again the urls.py

Location:
mauRepo/MolesManager/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • mauRepo/MolesManager/trunk/resources/MolesManager_wsgi.conf

    r8074 r8138  
    1111    CustomLog /var/log/apache2/PROJECT_NAME_PAR.log combined 
    1212 
    13     WSGIScriptAlias /cedaManager PATH_TO_PROJECT_WSGI/wsgi.py 
     13    WSGIScriptAlias /PROJECT_NAME_PAR PATH_TO_PROJECT_WSGI/wsgi.py 
    1414 
    1515    <Directory PATH_TO_DJANGO_PROJECT> 
  • mauRepo/MolesManager/trunk/src/MolesManager/settings.py

    r8137 r8138  
    7474STATIC_ROOT = os.path.join(DJANGO_PROJECT, 'static') 
    7575 
    76 #WSGIScriptAlias = "/cedaManager" 
    77  
    7876# URL prefix for static files. 
    7977# Example: "http://media.lawrence.com/static/" 
     78 
     79#Deployment parametrized version 
    8080STATIC_URL = 'http://localhost' 
    8181 
  • mauRepo/MolesManager/trunk/src/MolesManager/static/templates/base.html

    r8137 r8138  
    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/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"  /> 
     24  <link rel="stylesheet" type="text/css" href="css/960/reset.css"  /> 
     25  <link rel="stylesheet" type="text/css" href="css/960/960_12_col.css"  /> 
     26  <link rel="stylesheet" type="text/css" href="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/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> 
     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"> 
  • mauRepo/MolesManager/trunk/src/MolesManager/urls.py

    r8137 r8138  
    3333) 
    3434 
    35  
    3635urlpatterns += patterns('', 
    37     url(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': STATIC_ROOT , 'show_indexes': True}), 
     36    url(r'css/(?P<path>.*)$', 'django.views.static.serve', {'document_root': STATIC_ROOT+'/css' , 'show_indexes': True}), 
    3837) 
    3938 
    4039urlpatterns += patterns('', 
    41     url(r'^static/css', 'django.views.static.serve', {'document_root': STATIC_ROOT+'/css' , 'show_indexes': True}), 
    42 ) 
    43  
    44 urlpatterns += patterns('', 
    45     url(r'^static/css/960/(?P<path>.*)$', 'django.views.static.serve', {'document_root': STATIC_ROOT+'/css/960' , 'show_indexes': True}), 
     40    url(r'css/960/(?P<path>.*)$', 'django.views.static.serve', {'document_root': STATIC_ROOT+'/css/960' , 'show_indexes': True}), 
    4641) 
    4742#urlpatterns += staticfiles_urlpatterns() 
Note: See TracChangeset for help on using the changeset viewer.