If the dev server is running slow, especially if you are using much data, you might want to try using the SQLite backend. http://code.google.com/appengine/docs/python/tools/devserver.html#Using_the_Datastore
Also, use Appstats. It will help you catch many common mistakes people make. http://code.google.com/appengine/docs/python/tools/appstats.html Loading a static css file should not make a noticeable impact on your app, unless that file is huge. If it is huge you might want to work on pruning it down a little, or at least compressing it. You should use Firebug's Net tab in Firefox or the Resources tab in Chrome / Safari Developer tools. You might also look into the page speed extension, it will offer suggestions on how to improve performance. All that said you should set 'expiration' after your static_dir def, or set default_expiration. http://code.google.com/appengine/docs/python/config/appconfig.html#Static_Directory_Handlers Robert On Sun, Nov 14, 2010 at 13:55, Zeynel <[email protected]> wrote: > Hello, > > I am having problems with Development server running very slow. At > some point previously GAE was trying to run an old script in a folder > which happened to be in PYTHONPATH. After deleting that script and > adding favicon.ico I noticed an improvement. But now I see that when I > activate the stylesheet in Mako template > > <head> > <link type="text/css" rel="stylesheet" href="/stylesheets/main.css" / >> > </head> > > it loads it every time the app is running. I believe this slows it > down. What is the solution to this? My app.yaml is: > > application: re-peater > version: 1 > runtime: python > api_version: 1 > > handlers: > > - url: /favicon.ico > static_files: static/images/favicon.ico > upload: static/images/favicon.ico > > - url: /stylesheets > static_dir: stylesheets > > - url: /.* > script: repeater.py > > Thanks! > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
