Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

214
Views
Deploy django as war - Jython

I'm trying to deploy a django app as war (to use with JBOSS server). I have seen the documentation and I made this:

jython manage.py builder --include-java-libs=/usr/share/java/jython/jython.jar

And I have this error:

Traceback (most recent call last):
  File "manage.py", line 16, in <module>
    raise ImportError(
ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment?

What should I do? Thanks.

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

You have not activated that environment where you installed Python and other dependent packages for application.

Activate the environment and then run:

jython manage.py builder --include-java-libs=/usr/share/java/jython/jython.jar

Then it will work for you.

over 4 years ago · Santiago Trujillo Report

0

Try this:

jython -m pip list

In the list check the package name django is there or not. Also, check for package django-jython.

To install this package to jython installation directory, run this command:

jython -m pip install django
jython -m pip install django-jython

To build war file, use this command:

jython manage.py buildwar --include-java-libs=/path/to/jython-standalone.jar
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!