Wednesday, February 29, 2012

jython django install - django import error

Hi,
I have problems installing django for jyhton.
I followed instructions on the django / django-jython site, but can't
import django from jython.

Jython 2.5.3b1
django_jython-1.3.0b2

### INSTALLATION
# after
# - installing jython
# - adding JYTHON_DIR/bin to path:
> jython pip install django-jython

...installs fine


### USE
> jython
Jython 2.5.3b1 (2.5:5fa0a5810b25, Feb 22 2012, 12:39:02)
[Java HotSpot(TM) Server VM (Sun Microsystems Inc.)] on java1.6.0_26
Type "help", "copyright", "credits" or "license" for more information.

>>> import doj
>>> import django
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named django

***
importing 'doj' works fine though. But there is no 'django'.
I tried to put pyhon's django to JYTHONPATH:
/usr/local/lib/python2.7/dist-packages/django

Still no luck.

Do I miss something?
Otherwise django on python seems to work fine.

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

No comments:

Post a Comment