Jython, Django with Sqlite3

Now I am creating a project using jython 2.5.2b2 and django1.1.1 (lucid), after loading sqlitejdbc-v056.jar and doing some syncdb task that it showed.

"zxJDBC.Error: auth_permission.content_type_id may not be NULL [SQLCode: 0]" 

but can still start the server, does anyone have a great example for this situation?

+3
source share
2 answers

I recreated this error on OS X with Jython 2.5.2 and Django 1.1.1. However, the documentation for the django-jython package (which provides the glue between Django on Jython and various databases) contains the following information: SQLite3 support :

SQLite3

Experimental. , . , .

0

django.contrib.auth INSTALLED_APPS settings.py

INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    )

To

INSTALLED_APPS = (        
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'django.contrib.auth',
    )
+1

Source: https://habr.com/ru/post/1769129/


All Articles