HI

Thanks Daniel it's working me. finally i understand third party
modules did not load bash, If you want load bash, you have set
DJANGO_SETTINGS_MODULE , other wise  start with your project directory

$ python manage.py shell
Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)
Type "copyright", "credits" or "license" for more information.

IPython 0.10 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object'. ?object also works, ?? prints more.

In [1]: from django.shortcuts import render_to_response

In [2]:

thanks guys.

-Ganesh.

Did I learn something today? If not, I wasted it.



On Fri, Nov 11, 2011 at 9:06 PM, Daniel Roseman <dan...@roseman.org.uk> wrote:
> On Friday, 11 November 2011 13:49:08 UTC, Ganesh-Bugcy wrote:
>>
>> Hi ,
>>
>> I have tried to load render_to_response module. it's through error. I
>> have tried download and install the module
>> https://github.com/jgorset/django-shortcuts
>> installed sucessfully, But not load any one of  you help me guys.
>>
>> dhana013 ~ $ ipython
>> Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)
>> Type "copyright", "credits" or "license" for more information.
>>
>> IPython 0.10 -- An enhanced Interactive Python.
>> ?         -> Introduction and overview of IPython's features.
>> %quickref -> Quick reference.
>> help      -> Python's own help system.
>> object?   -> Details about 'object'. ?object also works, ?? prints more.
>>
>> In [1]: from django.shortcuts import render_to_response
>>
>> ---------------------------------------------------------------------------
>> ImportError                               Traceback (most recent call
>> last)
>>
>> <snip>
>>
>> ImportError: Settings cannot be imported, because environment variable
>> DJANGO_SETTINGS_MODULE is undefined.
>>
>> In [2]:
>>
>> -Ganesh.
>>
>> Did I learn something today? If not, I wasted it.
>
> As has been pointed out to you before, `django.shortcuts.render_to_response`
> has nothing whatsoever to do with the django-shortcuts third-party package.
> It does not need to be installed separately.
> The traceback which you quote shows you exactly what is wrong - you have not
> set the DJANGO_SETTINGS_MODULE environment variable. To avoid the need for
> this, start your shell with `./manage.py shell` rather than ipython
> directly.
> --
> DR.
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/ZDIT9_mUqlkJ.
> 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.

Reply via email to