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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T17:52:50+00:00 2026-05-30T17:52:50+00:00

i have made an application using python and google app engine, the app works

  • 0

i have made an application using python and google app engine, the app works ok so far on localhost but when i deploy it using the google app engine launcher i get the following:

    Traceback (most recent call last):
  File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/_webapp25.py", line 701, in __call__
    handler.get(*groups)
  File "/base/data/home/apps/s~legacyexample01/1.357212630820400434/legacyexample.py", line 78, in get
    self.response.out.write(template.render(path, template_values))
  File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/template.py", line 91, in render
    t = _load_user_django(template_path, debug)
  File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/template.py", line 113, in _load_user_django
    template = django.template.loader.get_template(file_name)
  File "/base/python_runtime/python_lib/versions/third_party/django-0.96/django/template/loader.py", line 79, in get_template
    source, origin = find_template_source(template_name)
  File "/base/python_runtime/python_lib/versions/third_party/django-0.96/django/template/loader.py", line 72, in find_template_source
    raise TemplateDoesNotExist, name
TemplateDoesNotExist: index.html

my code for rendering the pages is the following:

class MainPage(webapp.RequestHandler):
    def get(self):

        template_values = {}

        path = os.path.join(os.path.dirname(__file__), "files/page/index.html")
        self.response.out.write(template.render(path, template_values))

class RegisterPage(webapp.RequestHandler):
    def get(self):

        currentYear = datetime.datetime.now().year
        firstYear = currentYear-100
        template_values = {
            "currentYear" : currentYear,
            "firstYear" : firstYear,
        }

        path = os.path.join(os.path.dirname(__file__), "files/page/register.html")
        self.response.out.write(template.render(path, template_values))

application = webapp.WSGIApplication( [('/', MainPage),('/registration', RegisterPage),('/sign',RegistrationProccess) ], debug=True)

i use django 1.3 and python 2.7 is that the cause of the problem ? please help

UPDATE
here is also my yaml configutration

application: legacyexample01
version: 1
runtime: python
api_version: 1

handlers:
- url: /files/image
  static_dir: files/image

- url: /files/css
  static_dir: files/css

- url: /files/javascript
  static_dir: files/javascript

- url: /files/page
  static_dir: files/page

- url: /.*
  script: legacyexample.py
  • 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-05-30T17:52:51+00:00Added an answer on May 30, 2026 at 5:52 pm

    is the index.html template in files/page ?

    edit:

    remove

    - url: /files/page
      static_dir: files/page
    

    this declaration from the yaml file.
    you need the html template files accessible from the .py files and not as static files.

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

Sidebar

Related Questions

I have made an application using Java/Hibernate/MySQL, but whenever I try running it, it
I have made my GAE application using the development server, but now when I
I have made an application (for my self) for feeds reading, using SyndicationFeed ,
I have made an application and I have installed it on my iphone, but
I have made a swings application but there is one problem in that which
I have made a silverlight application and I have hosted it on my localhost
I'm using c#, .net 4, WIX 3.5, Windows Vista. I have made my application
I'm creating a Qt application using PyQt4 in Python. I have chosen the Dialog
I have made an application in javascript using HTML fields in asp.net, as asp
I have made an application using Ruby. Some gems are being used in it(approx.

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.