Static files/directories are hosted on different servers to the application
bits. Great for items that are both static *and* not needing to be accessed
directly by your app, only by the browser.

On 24 March 2010 01:46, Kenchu <[email protected]> wrote:

> yea, flash is a static directory. I tried using a nonstatic directory,
> and that seems to work. So I suppose you're not allowed to have
> templates in static directories then. :)
>
> On Mar 17, 10:47 pm, Wooble <[email protected]> wrote:
> > Have you defined flash as a static directory?
> >
> > On Mar 17, 3:12 pm, Kenchu <[email protected]> wrote:
> >
> > > For some reason my folder is not allowed to be named flash if I want
> > > scripts in it. As soon as I rename it, scripts will run in it, but if
> > > it is named "flash", then I will get that "file not accessible" error.
> > > wtf.
> >
> > > On Mar 17, 8:01 pm, Kenchu <[email protected]> wrote:
> >
> > > > Hm, I noticed another error too. When trying to run a script residing
> > > > in the folder, I get "file not accessible" error. I tried adding a
> new
> > > > folder and running the script with template there instead, and that
> > > > works.
> >
> > > > So something is wrong with the folder or something. But it has the
> > > > same permissions as any other folder.
> >
> > > > This is probably related to my other issue (
> http://groups.google.com/
> > > > group/google-appengine/browse_thread/thread/f377514b9261c6d4 )
> >
> > > > On Mar 17, 7:23 pm, Kenchu <[email protected]> wrote:
> >
> > > > > /Users/swekenchu/Dropbox/Development/GoogleAppEngine/google
> proj/flash/
> > > > > index.htm
> >
> > > > > On Mar 16, 3:05 pm, djidjadji <[email protected]> wrote:
> >
> > > > > > What is the value of 'path' after the os.path.join()?
> >
> > > > > > 2010/3/15 Kenchu <[email protected]>:
> >
> > > > > > > Displaying a template that resides in the main folder together
> with
> > > > > > > the script works just fine, but as soon as I try to display one
> in a
> > > > > > > subfolder, I get an error:
> >
> > > > > > > TemplateDoesNotExist: index.htm
> >
> > > > > > > It's weird that it doesn't display the full path.
> >
> > > > > > > This is the code I use:
> >
> > > > > > > path = os.path.join(os.path.dirname(__file__),
> 'flash/index.htm')
> > > > > > > self.response.out.write(template.render(path,{}))
> >
> > > > > > > Are you not allowed to display templates in subfolders?
> >
> > > > > > > --
> > > > > > > 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]<google-appengine%[email protected]>
> .
> > > > > > > For more options, visit this group athttp://
> 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]<google-appengine%[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.

Reply via email to