Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 8 years ago.
Improve this question
I did this :
import calender
But gives me this error :
ImportError: No module named calender
What should I do?
You have a typo in the name, it's calendar, not calender:
import calendar
Related
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 1 year ago.
Improve this question
Kindly look at 10th line of this code snippet:
You forgot to close print():
print(txt.read())
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 1 year ago.
Improve this question
I created models for my project but am getting the following error. Help.
According to the documentation the argument is called upload_to, not uploads_to.
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 1 year ago.
Improve this question
I was trying this
from exceptions import ValueError
but got an error
ModuleNotFoundError: No module named 'exceptions'
any solutions??
You don't need to import ValueError. It's a built-in so you can always raise ValueError().
You do not need to import Exceptions. You can just use them as such
raise ValueError(text)
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 2 years ago.
Improve this question
I'm trying to follow the usage example of namedtuple( ) from the documentation, but I keep getting namedtuple is not defined.
You need import collections up top, then you can do collections.namedtuple
You can also do from collections import namedtuple and it should work like in the docs
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 4 years ago.
Improve this question
So, I'm trying to create a web, and I use django. My code is next:
from django.http import HttpResponce
def index(request):
return HttpResponce('Hello World!!!')
I don't understand why it workes in another projects and doesn't work now.
You misspelled response as responce