DJANGO_SETTINGS_MODULE is an environment variable that must be set. I believe this is taken care of for you when you create a project using django-admin. You may need to create it manually. Without that environmental variable set, the Django shell won't open. As Jirka said, please review the tutorials and documentation, especially Tutorial 1-4. This will get you on your way to installing and using Django via the web, and shell.
Furbee On Tue, Aug 14, 2012 at 2:50 PM, Jirka Vejrazka <jirka.vejra...@gmail.com>wrote: > > right, I was being very brief in my description! > > But it is the following: > > I want to insert data into the database from the shell, django shell, but > > the result is always that you can not import the settings because the va > > riavel DJANGO_SETTINGS_MODULE is not set > > Did you read my previous email and checked the documentation at all? > It's all described there: > > https://docs.djangoproject.com/en/1.4/faq/usage/ > https://docs.djangoproject.com/en/1.4/ref/django-admin/ > > If you read this and *still* have a problem, come back and ask a > specific question with what you already tried (e.g. do you have a > database defined and created?) and what specific error(s) are you > experiencing. > > HTH > > Jirka > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.