« March 2012 | Main | June 2012 »
April 10, 2012
Read a file from a Jython servlet
Using Jython servlets with WebSphere Application Server for more than system administration
Posted by pj at 07:59 AM | Comments (0)
April 09, 2012
Getting Jython Django to talk to Postgres
Add the PostgreSQL jar into your CLASSPATH:
export CLASSPATH=$CLASSPATH:/opt/apache-tomcat-7.0.26/webapps/slides/WEB-INF/lib/postgresql-8.4-702.jdbc3.jar
Edit the settings.py file of your application:
#DATABASES = { # 'default': { # 'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. # 'NAME': '', # Or path to database file if using sqlite3. # 'USER': '', # Not used with sqlite3. # 'PASSWORD': '', # Not used with sqlite3. # 'HOST': '', # Set to empty string for localhost. Not used with sqlite3. # 'PORT': '', # Set to empty string for default. Not used with sqlite3. # } #} DATABASE_ENGINE = 'doj.backends.zxjdbc.postgresql' DATABASE_NAME = 'yourdb' DATABASE_USER = 'youruser' DATABASE_PASSWORD = 'yourpasswd'
Posted by pj at 05:10 PM | Comments (0)
JSP Include
The JSP Include directive tutorial
Posted by pj at 01:57 PM | Comments (0)
April 04, 2012
Using ZPT with Django
Zope.org - Django Page Templates
Posted by pj at 10:57 PM | Comments (0)