New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bugs in Web app #74744
Comments
Hai I followed your Tutorial
In the Following Program, i am getting
Traceback (most recent call last):
File "C:\Users\Mahira\AppData\Local\Programs\Python\Python36\Scripts\localhost.py", line 1, in <module>
import web
File "C:\Users\Mahira\AppData\Local\Programs\Python\Python36\Scripts\web.py", line 6, in <module>
app = web.application(("urls"),globals())
AttributeError: module 'web' has no attribute 'application' And my program is: import web
urls = (
'/', 'index'
)
class index:
def GET(self):
return "Hello, world!"
if __name__ == "__main__":
app = web.application(urls, globals())
app.run() |
Hi Mahira, This site is for reporting bugs in the Python core language itself, not bugs in code written by users. You appear to be using the "Learn Python the Hard Way" tutorial, which is a third-party resource that's not maintained by the Python language developers. You might want to try asking your questions on one of the Python mailing lists (see https://www.python.org/community/lists/), or the "Learn Code the Hard Way" chat room: https://gitter.im/lcthw/Lobby |
It is good that you included both a short program and the full traceback. Too many beginners don't do that when asking questions. Three comments: your program does not have syntax errors and compiled just fine; exceptions almost never involved the editor/IDE you happen to use; if 'web' comes from a book, its discussion group should be your best bet. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: