Commits

Luke Plant  committed 09077df

Used STATIC_URL where possible and added jQuery so that the photo changer always works

  • Participants
  • Parent commits f9c64c7

Comments (0)

Files changed (3)

File christchurch/settings.py

     'django.core.context_processors.i18n',
     'django.core.context_processors.request',
     'django.core.context_processors.media',
+    'django.core.context_processors.static',
     'cms.context_processors.media',
 )
 

File christchurch/templates/christchurch/iframe.html

 <head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   <title>{{ title }}</title>
-  <link rel="StyleSheet" href="/static/christchurch/css/style.css" type="text/css">
+  <link rel="StyleSheet" href="{{ STATIC_URL }}christchurch/css/style.css" type="text/css">
 </head>
 <body class="iframecontent">
   <div class="iframeinner">

File christchurch/templates/standard.html

   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   <title>{{ request.current_page.get_title }} :: Christ Church, Bradford</title>
   <meta name="keywords" content="Christ church, Bradford, church, evangelical, reformed, christchurch, Yorkshire, UK, Pollard Park">
-  <link rel="StyleSheet" href="/static/christchurch/css/style.css" type="text/css">
+  <script type="text/javascript" src="{{ STATIC_URL }}admin/js/jquery.min.js"></script>
+  <link rel="StyleSheet" href="{{ STATIC_URL }}christchurch/css/style.css" type="text/css">
+
   {% plugins_media %}
 
 </head>