walterbyrd wrote:
> On Jul 2, 5:13 pm, Carl Karsten <[EMAIL PROTECTED]> wrote:
> 
>> "not using X" does not say what you are doing - my best guess is "what will 
>> be
>> available if I just run python?"  if so, the answer is "nothing other than 
>> you
>> can import django."
> 
> As I mentioned, this is what I was trying to do:
> 


>>>> from django.template import Template, Context

I bet that wasn't in the post where you asked the question.  guessing you 
trimmed a bit too much.

> 
> It does not work from the standard python prompt,

It should.  I am guessing you don't have django installed in your python path. 
To test, try just >>> import django

http://www.djangoproject.com/documentation/install/#install-the-django-code

Are you using the official version or the latest development version ?


  and it does not work
> from ipython.  It does work if I launch a shell with: python manage.py
> shell.
> 
> Apparently, the reason it works if I  launch a shell with "python
> manage.py shell" is because that affects the setting in manage.py.
> 

I would forget all this until
import django
works.

> Okay, so what if I don't launch from any interactive shell? What if I
> run from a text file? Since I am not running manage.py, I would think
> that meant that the settings would not be affected. But, it does seem
> to work from the text file.
> 

I'm guessing 'text file' is a python program.  which is pretty much the same as 
entering the commands at a prompt.  but you might want to be a bit more 
explicit.  I find answering vague questions often causes more problems than it 
solves.

Carl K





--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to