| 1 | =============================== |
| 2 | How to install Django on Jython |
| 3 | =============================== |
| 4 | |
| 5 | This document will get you up and running with Django on top of Jython. |
| 6 | |
| 7 | Install Jython |
| 8 | ============== |
| 9 | |
| 10 | Django works with Jython versions 2.5 and higher. The 2.5a2+ release will be be |
| 11 | the first in which Django will work out of the box. You can also grab the |
| 12 | development version from the subversion repository. |
| 13 | |
| 14 | Get the official releases from <http://www.jython.org>. |
| 15 | |
| 16 | Install a servlet container |
| 17 | =========================== |
| 18 | |
| 19 | If you just want to experiment with Django, skip ahead to the next |
| 20 | section; Django includes a lightweight Web server you can use for |
| 21 | testing, so you won't need to set up anything else until you're ready to |
| 22 | deploy Django in production. |
| 23 | |
| 24 | If you want to use Django on a production site, use a Java servlet container, |
| 25 | such as `Apache Tomcat`_. Full JavaEE applications servers such as `GlassFish`_ |
| 26 | or `JBoss`_ are also OK, if you need the extra features they include. |
| 27 | |
| 28 | .. _`Apache Tomcat`: http://tomcat.apache.org/ |
| 29 | .. _GlassFish: https://glassfish.dev.java.net/ |
| 30 | .. _JBoss: http://www.jboss.org/ |
| 31 | |
| 32 | Remove any old versions of Django |
| 33 | ================================= |
| 34 | |
| 35 | XXX: It's the same as documented on ../install, after the obvious |
| 36 | s/python/jython replacement. Should we link to that? Do some sort of include? |
| 37 | |
| 38 | Install the Django code |
| 39 | ======================= |
| 40 | |
| 41 | XXX: Again, the same as documented on ../install. |
| 42 | |
| 43 | Install django-jython |
| 44 | ===================== |
| 45 | |
| 46 | The `django-jython`_ project contains database backends and management commands |
| 47 | for Django/Jython development. Note that the builtin Django backends won't work |
| 48 | on top of Jython. |
| 49 | |
| 50 | .. _`django-jython`: http://code.google.com/p/django-jython/ |
| 51 | |
| 52 | To install it, follow the `installation instructions`_ detailed on the project |
| 53 | website. Also chekc the `database backends`_ documentation there. |
| 54 | |
| 55 | .. _`installation instructions`: http://code.google.com/p/django-jython/wiki/Install |
| 56 | .. _`database backends`: http://code.google.com/p/django-jython/wiki/DatabaseBackends |
| 57 | |