Wednesday, February 29, 2012

jython django install - django import error

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

# 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:

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
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment