I am learning django from a book. According to instruction I created a forms.py file inside the same directory that views.py exists. Inside the file I wrote the following codes:
from django import forms
class ContactForm(forms.Form):
subject = forms.CharField()
email = forms.EmailField(required = False)
message = forms.CharField()
Then after entering virtual environment through env_mysite\scripts\activate I started python. After than I typed:
from mysite.forms import ContactForm
f = ContactForm()
But I receive the following message after a lot of file paths
django.core.exceptions.ImproperlyConfigured: Requested setting USE_I18N, but
settings are not configured. You must either define the environment variable
DJANGO_SETTINGS_MODULE or call settings.configure() before accessing
settings.
I opened setting.py file and USE_I18N was True
I have just followed the instruction from tutorial book I but don't understand what is wrong here. Could you please help