added base.html and did needed changes, (forgot to add files in previous commit). anoop
authoranoop
Thu, 03 Jun 2010 19:08:31 +0530
branchanoop
changeset 27 48a86d8956f7
parent 26 212fcba4459e
child 29 8bee50ee3504
added base.html and did needed changes, (forgot to add files in previous commit).
django.wsgi
templates/base.html
templates/index.html
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/django.wsgi	Thu Jun 03 19:08:31 2010 +0530
@@ -0,0 +1,10 @@
+import os
+import sys
+
+sys.path.append('/var/www/html')
+
+os.environ['DJANGO_SETTINGS_MODULE'] = 'sage_days.settings'
+
+import django.core.handlers.wsgi
+application = django.core.handlers.wsgi.WSGIHandler()
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/templates/base.html	Thu Jun 03 19:08:31 2010 +0530
@@ -0,0 +1,153 @@
+<html>
+<head>
+    <title>{% block title %}SAGE DAYS 25, India{% endblock %}</title>
+    {% block js_script %} {% endblock %}
+<style type="text/css">
+        body {
+        font-family: Verdana, Arial, Helvetica, sans-serif;
+        font-size: 11px;
+        color: #333;
+        text-align: center;
+        margin: 0px;
+        padding: 20px 0px 20px 0px;
+        }
+        #wrapper {
+        width: 956px;
+        padding: 10px;
+        margin: 0px auto 0px auto;
+        height: auto;
+        text-align: left;
+        border: 1px solid #ddd;
+        }
+        #header {
+        margin: 0px;
+        padding: 5px 0px 5px 0px;
+        height: auto;
+        width: auto;
+        text-align: center;
+        background-color: #f1f1f1;
+        }
+        #container {
+        padding: 0px;
+        margin: 10px 0px 0px 0px;
+        background-attachment: scroll;
+        background-image: url(back.gif);
+        background-repeat: repeat-y;
+        background-position: 0px 0px;
+        height: auto; #default was 1%
+        width: auto;
+        }
+        #left {
+        margin: 0px;
+        width: 160px;
+        padding: 10px 20px 10px 20px;
+        float: left;
+        }
+        #nav {
+        margin: 0px;
+        padding: 0px;
+        list-style-image: none;
+        list-style-type: none;
+        }
+        #nav li {
+        margin: 0px;
+        padding: 0px;
+        display: block;
+        background-attachment: scroll;
+        background-image: url(bullet.gif);
+        background-repeat: no-repeat;
+        background-position: 0px 50%;
+        }
+        #nav li a:link, #nav li a:visited, #nav li a:active {
+        color: #666;
+        text-decoration: none;
+        display: block;
+        margin: 0px;
+        padding: 3px 15px 3px 15px;
+        width: 130px;
+        }
+        #nav li a:hover {
+        color: #999;
+        text-decoration: none;
+        }
+        #center {
+        height: auto;
+        width: 504px;
+        padding: 10px 20px 10px 20px;
+        float: left;
+        margin: 0px 0px 0px 6px;
+        line-height: 1.8em;
+        }
+        h1 {
+        font-size: 14px;
+        margin: 0px;
+        padding: 0px;
+        }
+        #right {
+        padding: 10px 20px 10px 20px;
+        height: auto;
+        width: 160px;
+        float: left;
+        margin: 0px 0px 0px 6px;
+        }
+        .clearer {
+        font-size: 0px;
+        line-height: 0px;
+        display: block;
+        margin: 0px;
+        padding: 0px;
+        clear: both;
+        height: 0px;
+        width: auto;
+        }
+        #footer {
+        margin: 10px 0px 0px 0px;
+        text-align: left;
+        padding: 5px 0px 5px 0px;
+        background-color: #f1f1f1;
+        }
+        #footer p {
+        color: #999;
+        margin: 0px auto 0px auto;
+        padding: 0px;
+        }
+        #footer a:link, #footer a:visited, #footer a:active {
+        color: #999;
+        text-decoration: none;
+        }
+        #footer a:hover {
+        color: #ccc;
+        text-decoration: none;
+        } 
+</style>
+</head>
+
+<body>
+<div id="wrapper">
+    <div id="header">
+        <!--<h2><a href="/sage_days">-->SAGE DAYS 25, India<!--</a></h2>-->
+    </div>
+    <div id="container">
+        <div id="left">
+        <ul id="nav">
+            <li><a href="/sage_days" title="home">home</a></li>
+        </ul>
+        </div>
+        <div id="center">
+            {% block content %}This is the default content{% endblock %}
+        </div>
+        <div id="right">
+            <!--{% if user.is_authenticated %}
+            <a href="/accounts/logout">logout</a> 
+            {% endif %}-->
+        </div>
+        <div class="clearer">
+        </div>
+    </div>
+    <div id="footer">
+    Designed by <a href="http://fossee.in">FOSSEE</a>
+    </div>
+</div> 
+
+</body>
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/templates/index.html	Thu Jun 03 19:08:31 2010 +0530
@@ -0,0 +1,8 @@
+{% extends 'base.html' %}
+{% block content %}
+
+<p>
+For registration click <a href="/sage_days/registration/register/">here</a><br /><br />
+</p>
+
+{% endblock %}