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

  • Home
  • SEARCH
  • 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 8289443
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T12:30:34+00:00 2026-06-08T12:30:34+00:00

I have all my static files in a folder called html in the root

  • 0

I have all my static files in a folder called html in the root directory. I get the following error while trying to access the index.html in html folder:

-
INFO     2012-07-27 04:07:44,847 dev_appserver.py:2952] "GET /images/logo_footer.jpg HTTP/1.1" 404 -

Here is the folder structure:

root app directory

html directory

Handler code in handlers folder:

class MainHandler(webapp.RequestHandler):
  def get (self, q):
    if q is None:
      q = '../html/index.html'

    path = os.path.join (os.path.dirname (__file__), q)
    self.response.headers ['Content-Type'] = ContentType.HTML_TEXT
    self.response.out.write (template.render (path, {}))

Here is the url rule for images on app.yaml:

- url: /.*
  script: notify.app

# image files
- url: /(.*\.(bmp|gif|ico|jpeg|jpg|png))
  static_files: html/images/\1
  upload: html/images/(.*\.(bmp|gif|ico|jpeg|jpg|png))

Am I doing anything wrong here?

  • 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-08T12:30:35+00:00Added an answer on June 8, 2026 at 12:30 pm

    You need to move the url : /.* section to after the image files section in app.yaml. These are processed in order, and /.* matches everything, so the second - url: line is never used.

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

Sidebar

Related Questions

I have three classes that all have a static function called 'create'. I would
I'm trying to serve all static files (js, css, images) from a CDN instead
I have this code to list all the files in a directory. class GetTypesProfiler
I have a static csv file. I want to covert all the data in
I have a class which have a static member. As I understand, all static
I have a static_controller that is in charge of all the static pages in
We have a coding standard that says all shared (static) fields and methods must
I have been all over the place, seems the UITableView with a static background
All -- I have these two methods in one of my classes: public static
I have all my user uploaded pictures in a directory outside of the public

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.