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 8435665
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T06:58:30+00:00 2026-06-10T06:58:30+00:00

I have all static files same directory as my app.yaml Now, I have to

  • 0

enter image description here

I have all static files same directory as my app.yaml

Now, I have to specific the static files one by one in my app.yaml

application: xxx
version: 1
runtime: python
api_version: 1

handlers:
- url: /
  static_files: index.html
  upload: index.html

- url: /style.css
  static_files: style.css
  upload: style.css

- url: /android.png
  static_files: android.png
  upload: android.png

- url: /logo.png
  static_files: logo.png
  upload: logo.png

- url: /helloworld.py
  script: helloworld.py

Is there any easier way for me to specific all my static files? (Provide they are same directory level as app.yaml)

I try

- url: /
  static_files: index.html
  static_dir: \.
  upload: index.html

It won’t work.

Fatal error when loading application configuration:
Unexpected attribute "static_dir" for mapping type static_files.
  in "C:\Projects\xxx-website\app.yaml", line 12, column 1
  • 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-10T06:58:32+00:00Added an answer on June 10, 2026 at 6:58 am

    As others suggested you can put your files in the static folder and have an app.yaml that looks like this (so you don’t have to enter manually every file):
    https://gist.github.com/3031499

    You can also specific handlers at the top like:

    - url: /counter
      script: counter.app
    
    - url: /(.*\.rar)
      script: download.app
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

All -- I have these two methods in one of my classes: public static
I have a static csv file. I want to covert all the data in
I have three classes that all have a static function called 'create'. I would
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
I have all the parameters fixed to describe one plot including oma , mar
I have all my user uploaded pictures in a directory outside of the public
I need to create some directories and files and all of them should have

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.