views:

87

answers:

0

What can the reason be for this? It was working pretty well.

EDIT3

For others who may experience the same problem: check the logs file in the launcher and create a favicon.ico file as described here. And check for other errors as well.

EDIT2

@philar: Here is the information:

(a) Python 2.6.1

(b) I change the code all the time it is a small script and I copied it below.

(c) Windows Vista

(d) This is what's in the Logs at this moment:

INFO     2010-10-31 14:05:29,578 dev_appserver.py:3275] "GET /stylesheets/main.css HTTP/1.1" 200 -

INFO     2010-10-31 14:05:30,683 dev_appserver.py:3275] "GET /favicon.ico HTTP/1.1" 404 -

(e) no js and I am using Chrome

(f) code added below

Thanks. I downloaded 1.3.8 but I don't know how to update the old version. How do I that?

Thanks for your help and for suggesting for a list of information.

The script that I am using: (Note: it contains a lot of test items that I was trying as I get answers here to my questions.)

import cgi
import os
import HTML

from mako.template import Template
from google.appengine.api import users
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
from google.appengine.ext import db
from google.appengine.ext.webapp import template


class Rep(db.Model):
    author = db.UserProperty()
    replist = db.StringListProperty()
    unique = db.ListProperty(str)
    date = db.DateTimeProperty(auto_now_add=True)

class MainPage(webapp.RequestHandler):
    def get(self):      
        user = users.get_current_user()
        greeting = None

        if user:
            greeting = ("Welcome, %s! (<a href=\"%s\">sign out</a>)" %
                        (user.nickname(), users.create_logout_url("/")))
        else:
            greeting = ("<a href=\"%s\">Sign in or register</a>." %
                        users.create_login_url("/"))

        L = []                                   
        s = self.request.get('sentence')           
        L.append(s)                              

        L = L[0].split('\r\n')     

        def f2(L):
            checked = []
            for e in L:
                if e not in checked:
                    checked.append(e)
            return checked

        Rep().replist = L                                   
        Rep().put()                              
        mylist = list(Rep().all().fetch(10))

        leng = len(mylist)
        T = type(mylist)
        self.response.out.write("Ttttt")

        L2 = f2(L)
        x = len(L)
        y = len(L2)
        delta = x - y
        for i in range(delta):
            L2.append('')



        template_values = {"s": s,
                           "L": L,
                           "L2": L2,
                           "x": x,
                           "y": y,
                           "greeting": greeting,
                           "mylist": mylist,
                           "leng": leng,
                           "T": T,
                           }

        path = os.path.join(os.path.dirname(__file__), 'main.mako')
        templ = Template(filename=path)
        self.response.out.write(templ.render(**template_values))  

EDIT Please let me know what other information is needed to resolve this problem? I am using localhost:8080