hi, Daniel:
   That does work, you solve a big problem for me. Thanks a lot.
   Also, it seems like manage.py have lots of built in command which are
doing different things. Could you give a thread that i can access to learn
more about those commands? thanks
By the way, i will tell people who have met the same problem the solution.
Thans again.
regards,
Bowen

在 2011年11月11日星期五,Daniel Roseman <dan...@roseman.org.uk> 写道:
> 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