On Mon, Mar 7, 2016 at 11:34 AM, Dariusz Mysior <mysior.darek@gmail.com> wrote:
I use Django 1.8 Python 3.4.3 and I have problem when i go to Ipython or Python and I try use command from contact.forms import MessageForm2 I have a error like below. I add that in wsgi.py and manage.py I have lineos.environ.setdefault("DJANGO_SETTINGS_MODULE", "biblio.settings")
where biblio is my main project nameRequested setting DEFAULT_INDEX_TABLESPACE, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
Are you accessing the shell via the 'manage.py shell' command? Doing so should set up the Django environment variables for you automatically.
Or are you just firing up a standard Python interpreter shell and trying to import your forms directly?
-James
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2Be%2BciUW-Qbvc%3Dyr3wdatm8mevB8cU0PwnawEX3eioNfHDjJjA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment