Hello,

I am developing a personal website with django on  google app engine.
The site works when I do not use templates. See here:
vrao423.appspot.com. But when I change try to use templates I separate
the base into files index and base.

Here is my base:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/
TR/html4/strict.dtd">
<html>
<head>

    <link rel="stylesheet" href="stylesheets/style.css" />

    <script type="text/javascript" src="scripts/image_rotate.js"></
script>

        <title>Venkat S. Rao's Homepage</title>


    <script type="text/javascript" src="scripts/jquery-1.2.3.min.js"></
script>
    <script type="text/javascript" src="scripts/
jquery.easing.min.js"></script>
    <script type="text/javascript" src="scripts/
jquery.lavalamp.min.js"></script>
    <script type="text/javascript">
        $(function() {
            $("#1, #2, #3").lavaLamp({
                fx: "backout",
                speed: 700,
                click: function(event, menuItem) {
                    return false;
                }
            });
        });
    </script>

</head>

<body >
<div class="main">


<div class="title" >
Venkat S. Rao
</div>



<div id="menu">
  <ul class="lavaLampBottomStyle" id="1">
    <li class="current"><a href="#">Home</a></li>
    <li><a href="#">Projects</a></li>
    <li><a href="http://vrao423.wordpress.com/";>Blog</a></li>
    <li ><a href="http://www.youtube.com/vrao423";>You Tube</a></li>
    <li><a href="#">Contact Me</a></li>
 </ul>
</div>



<div class="content">

{% block content%}


{% endblock %}

</div>

<div class="footer">
&copy; Venkat S. Rao 2009
</div>
</div>


</body>
</html>

Here is my index.html:

{% extends 'base.html' %}


{% block content %}

<script>
        setInterval("nextSlide()",gSlideshowInterval * 1000);
</script>

<IMG SRC="http://farm4.static.flickr.com/
3460/3773940130_38a07acdc0.jpg" BORDER=0 width="550px" NAME="slide">
{% endblock %}

{% endblock %}

my urls.py looks like:

from django.conf.urls.defaults import *

urlpatterns = patterns('',
    (r"^$", 'main.views.index'),
)

I am gettting a template not found. I have spent about 4 hours trying
to figure this out. But I am very stuck.

Here is part of the error I get:

 C:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py in ExecuteOrImportScript(handler_path='main.py',
cgi_path=r'C:\Users\Ashok\workspace\PersonalSite\main.py',
import_hook=<google.appengine.tools.dev_appserver.HardenedModulesHook
object at 0x0297E6F0>)
 2022       exec module_code in script_module.__dict__
 2023     else:
 2024       script_module.main()
 2025
 2026     sys.stdout.flush()
script_module = <module 'main' from 'C:\Users\Ashok\workspace
\PersonalSite\src\main.py'>, script_module.main = <function main at
0x022072B0>
 C:\Users\Ashok\workspace\PersonalSite\src\main.py in main()
   34
   35   # Run the WSGI CGI handler with that application.
   36   util.run_wsgi_app(application)
   37
   38 if __name__ == '__main__':
global util = <module 'google.appengine.ext.webapp.util'
from ..._appengine\google\appengine\ext\webapp\util.pyc'>,
util.run_wsgi_app = <function run_wsgi_app at 0x021E07F0>, application
= <django.core.handlers.wsgi.WSGIHandler object at 0x0297E6D0>
 C:\Program Files\Google\google_appengine\google\appengine\ext\webapp
\util.py in run_wsgi_app
(application=<django.core.handlers.wsgi.WSGIHandler object at
0x0297E6D0>)
   74   env["wsgi.multithread"] = False
   75   env["wsgi.multiprocess"] = False
   76   result = application(env, _start_response)
   77   if result is not None:
   78     for data in result:
result undefined, application = <django.core.handlers.wsgi.WSGIHandler
object at 0x0297E6D0>, env = {'APPLICATION_ID': 'vrao423',
'AUTH_DOMAIN': 'gmail.com', 'CONTENT_LENGTH': '', 'CONTENT_TYPE':
'application/x-www-form-urlencoded', 'CURRENT_VERSION_ID': '1.1',
'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'application/
xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/
*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.3',
'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8', 'HTTP_CONNECTION': 'keep-
alive', ...}, global _start_response = <function _start_response at
0x021E0830>

Please Help!!!!!

Thank You,

Venkat Rao
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to