Friday, July 20, 2012

Re: python/django

Hey spanky,

I'm not sure if I'm misunderstanding you but it sounds like you are trying to 'import python'. 

What you want to do is run python from your command line:

$ python

which then brings you to the interpreter which looks something like 

Python 2.7.1 (r271:86832, Jul 31 2011, 19:30:53) 
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>  

from there you want to type 'import django' so it should looks like 

>>> import django

If it seems like nothing happened, then it worked. If you want to double check you can run 

>>> print django.get_version

 Hope this helps. 



On Thursday, July 19, 2012 11:34:40 PM UTC-5, spanky wrote:
hi there, i can't seem to get my django working in my python promt.
import python just renders an error not recognised, got a feeling i have to change the site path so i can import django into idle or python prompt, any suggesions would be grateful thanks. 
I've tried running the install but obvioulsy get held up at this point.

--
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/-/AZjeYKK3TDkJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate