Thursday, July 1, 2010

Newbie Question - django-jython - how to "run" the app?

heya,

I've trying to get my Django app to run on a Tomcat 5.x server, using
django-jython. I'm a bit of a newbie in the Java/Tomcat world though.

Firstly, I'm currently using PostgreSQL. However, to make things
easier on the target server, I was just going to use SQLite3 - the app
will only be used by two users, and getting a database in this
deployment environment is a bit tricky. However, I read on the django-
jython pages that SQlite3 support is experimental and considered
risky:

http://packages.python.org/django-jython/database-backends.html

Is that still true? Should I try and push hard to get a database setup
for me? The only one they offer is MySQL, there's a few hoops to get
that though.

Secondly, apparently this Tomcat server doesn't take WAR archives
files, you need to explode them first. Anyhow, I've unzipped the WAR
archive to the directory, now I'm not exactly sure how to get it to
actually run.

Under my app context directory, my structure looks like (where
application is called chair, just for example's sake)

\chair
- application.py
- application$py.class
\WEB-INF
web.xml
\lib
- jruby-extras-fileservlet.jar
- jython.jar
\lib-python
- Lib.pth
- README
\chair
\django
\doj
\Lib

etc.

Is this right, or am I missing any files/directories in the WAR
creation?

Apart from setting up the context, what exactly do I need to do (or
get the web server administrator) to do to get the application to run?
Do I need to get them to import the web.xml file? I had a look in
there, didn't seem to find anything that seems to "run" my app, or
point to anything to get it to run?

Cheers,
Victor

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate