Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8929003
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T08:34:45+00:00 2026-06-15T08:34:45+00:00

This seems like its probably something simple and n00bish, but I can’t move my

  • 0

This seems like its probably something simple and n00bish, but I can’t move my .html files to their own directory without the site coming to a screaming halt. They work file if left in the root folder.

Here’s what I tried to do

<root>
|_ app.yaml
|_ main.py
|_ ...etc
|_<layout>
  |_ base.html
  |_ home.html
  |_ ...etc

I added the following to my app.yaml file:

- url: /layout
  static_dir: layout

I figured that would do it, and since nothing else uses that directory I assume the order in HANDLERS doesn’t matter. Here is my complete handlers section in case someone spots something obvious I missed (I admit to not having a great understanding of this, despite having trolled through documentation and other problems here relating to static files and directories):

handlers:
- url: /favicon.ico
  static_files: favicon.ico
  upload: favicon.ico

- url: /layout
  static_dir: layout

- url: /stylesheets
  static_dir: stylesheets

- url: .*
  script: main.app

I’ve tried mixing up the order of the handlers, but the error is always the same:

IOError: [Errno 13] file not accessible: 'E:\\Users\\Steve\\Documents\\test_gae\\test\\layout\\home.html'

Any suggestions would be greatly appreciated, Cheers

ANSWER, as per the answer from voscausa: these HTML files are templates, not static pages. Removing the static handler for ‘layout’ completely solved the problem.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T08:34:46+00:00Added an answer on June 15, 2026 at 8:34 am

    If you use Jinja2, you do not need to put the /layout folder in your app.yaml, because you do not serve the templates static, but you render the templates with jinja and write the response HTML.

    So the problem must be in your code. Look at the template path.

    The order of handler matters. The url patterns are matched from top to bottom. This means

    - url: /.*
      script: main.app
    

    is always the last handler!!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

All, this seems like a simple problem but it's giving me fits. Lets say
This seems like such a simple issue but I cannot find an elegant solution.
This seems like the simplest Git question, but I can't find ANYTHING on it.
This seems like something that could be quite useful and yet and I can't
This seems like a simple problem but nothing nothing is fixing it. I'm trying
This is probably something simple but it's driving me nuts. I'm making some pagination
Following up to this question , it seems like Select-Object sets its input to
This seems like a basic question, but it's still bugging me. Why doesn't MyObject
This seems like a repeated question but i'm not able to get my answer.
This seems like a must have form input for a mobile ui framework, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.