Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

177
Visualizações
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.

about 4 years ago · Santiago Trujillo
2 Respostas
Responde à pergunta

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.

about 4 years ago · Santiago Trujillo Relatório

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
about 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda