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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T13:23:27+00:00 2026-06-14T13:23:27+00:00

I am new to Python, and I am trying to run a web.py app

  • 0

I am new to Python, and I am trying to run a web.py app with Python Anywhere, but I keep getting the No template named index error. I’ve modified wsgi.py to use the following:

import web
import MySQLdb

urls = (
  '/', 'index'
)

render = web.template.render('/home/user/templates/')

Any help would be greatly appreciated.

  • 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-14T13:23:29+00:00Added an answer on June 14, 2026 at 1:23 pm

    You’ve used the literal path '/home/user/templates/'. Unless your username is actually user, there is no such directory, and therefore attempting to read the index template out of that directory is going to fail.

    If your username is, say, rhpt, you’d change that to '/home/rhpt/templates/'.

    Even better, you might want to use os.path.expanduser('~/templates/') instead of hardcoding your username. (Then you can give your code to a friend, or a client, and they can host it without having to edit the code.)

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

Sidebar

Related Questions

I'm new to python but I've run into a hitch when trying to implement
I'm new to Python. I'm trying to run this script (gencards.py) in Windows, but
I'm very new to python and trying to run a piece of Django code
Im new to django and python, trying to run a piece of django code
I am new to python and I am trying to run following code: m=int(raw_input())
I am new to Python and Web.py, but I am tearing my hair out
I am new to python. I am trying to run following program: class Temp():
I am new to Python. I was trying to define and run a simple
Im new two python and am trying to grow a dictionary of dictionaries. I
I'm brand new at Python and I'm trying to write an extension to an

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.