postgres library in django using jython

11 views
Skip to first unread message

Felipe Salazar

unread,
Nov 2, 2017, 7:04:37 PM11/2/17
to Django users
Hi all

I a python developer that I don't use Django very frequently. I am facing a  struggle these days because I am development APIs in Django but to deploy the project I want to pack the project in a war file, so that is the reason that  I am using Jython. However, I am getting errors when I try to connect the project to Postgres database because it said that the library sqlite2 is not supported in Jython. I installed pysqlite3 1.3 but it looks like that this version does not support Postgres until version 1.7 of, but when I tried to install the package I get an error:" ' NoneType' object has no attribute 'startswith' ".

Please does anyone have an idea of how to solve this issue? 

I appreciate any help and thank you in advance.

Antonis Christofides

unread,
Nov 2, 2017, 8:20:49 PM11/2/17
to django...@googlegroups.com

Hi,

apparently you are confusing sqlite with postgresql. Could you show the full stack trace and error message, and your DATABASES setting?

Regards,

Antonis

Antonis Christofides
http://djangodeployment.com
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/e526aed1-8685-41ac-88f7-371f1bd54224%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages