Ticket #8326: jython_docs.2.diff
File jython_docs.2.diff, 4.4 KB (added by , 16 years ago) |
---|
-
new file docs/install_jython.txt
diff -r 9026852775e1 docs/install_jython.txt
- + 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 -
docs/tutorial01.txt
diff -r 9026852775e1 docs/tutorial01.txt
a b 18 18 installed. 19 19 20 20 .. _`Django installed`: ../install/ 21 22 .. admonition:: Django on Jython 23 24 If you are trying Django with `Jython`_ (a Python implementation for the 25 Java Virtual Machine), that's OK: The vast majority Django components work 26 fine under Jython. In fact, you can follow all this tutorial using it. When 27 doing *copy-and-paste*, don't forget to replace every ``python`` command with 28 ``jython``, and the ``PYTHONPATH`` environment variable with ``JYTHONPATH``. 29 30 You will also find useful to grab the `django-jython`_ integration code. It 31 includes management extensions and database backends for JDBC (Django 32 builtin database backends won't work). For more information, look at the 33 `Django on Jython installation`_ notes. 34 35 Make sure that you are using a Jython version of the 2.5 release series (svn 36 revisions and alphas releases since 2.5a2+ should be OK). Django won't work 37 with Jython 2.2.x releases. 38 39 .. _`Jython`: http://www.jython.org 40 .. _`django-jython`: http://code.google.com/p/django-jython 41 .. _`django on jython installation`. ../install_jython/ 21 42 22 43 .. admonition:: Where to get help: 23 44 … … 42 63 will create a ``mysite`` directory in your current directory. 43 64 44 65 .. admonition:: Mac OS X permissions 45 66 46 67 If you're using Mac OS X, you may see the message "permission 47 68 denied" when you try to run ``django-admin.py startproject``. This 48 69 is because, on Unix-based systems like OS X, a file must be marked … … 146 167 * ``DATABASE_ENGINE`` -- Either 'postgresql_psycopg2', 'mysql' or 'sqlite3'. 147 168 Other backends are `also available`_. 148 169 * ``DATABASE_NAME`` -- The name of your database, or the full (absolute) 149 path to the database file if you're using SQLite. 170 path to the database file if you're using SQLite. 150 171 * ``DATABASE_USER`` -- Your database username (not used for SQLite). 151 172 * ``DATABASE_PASSWORD`` -- Your database password (not used for SQLite). 152 173 * ``DATABASE_HOST`` -- The host your database is on. Leave this as an