Creating and Deploying a Simple Jython
Application using Django

After completing the software installation procedures described in Installing Jython and Django, you are ready to create
Jython applications using Django. This section explains how to create a simple
application. GlassFish Server users can deploy Django applications with the directory
deployment method.

To Create a Simple Django Project

Django comes with a built-in administration utility. You can enable
it to make the process of creating projects easier.

Use the following command to enable the Django administration
utility:

alias django–admin-jy="jython jython-install/bin/django-admin.py"

Change to Django install directory:

cd django-install

Use the following command to create a project:

django-admin-jy startproject myproject

To Deploy a Django Application From the
Command Line

To deploy a Django application from the command line using the asadmin command, do the following: