Connecting to FirebirdSQL-Database as a second DB

441 views
Skip to first unread message

Djangaroo

unread,
Nov 11, 2015, 4:39:49 AM11/11/15
to Django users
Hello everybody,

I'm having trouble connecting a second Database to my Django Project.

I would like to read Data from the Firebirdsql database, to display on my Website.

I have downloaded 'django-firebird'  Link

This is the setup I am using, wicht isn't working:

DATABASES = {
   
'default': {
       
'ENGINE': 'django.db.backends.sqlite3',
       
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
   
},
   
'zef': {
       
'ENGINE': 'firebird',
       
'NAME': os.path.join(BASE_DIR, 'Blabla.FDB'),
       
'USER' : 'MyDBUser',
       
'PASSWORD' : 'Topsecret',
       
'HOST' : '127.0.0.1',
       
'PORT' : '3050',
   
}      
}

and have also imported firebird and fdb:

import os, fdb, firebird

I still keep getting the following error message, when I try running my Server:

django.core.exceptions.ImproperlyConfigured: 'firebird' isn't an available database backend.
Try using django.db.backends.XXX, where XXX is one of:
    'base', 'mysql', 'oracle', 'postgresql_psycopg2', 'sqlite3'
Error was: cannot import name 'BaseDatabaseOperations'

I've been stuck here for a while and would really appreciate your help.

Jani Tiainen

unread,
Nov 11, 2015, 4:53:31 AM11/11/15
to django...@googlegroups.com
Hi,

Are you sure that django-firebird is compatible with version of Django you're using?

Docs seem to indicate that django-firebird supports only Django 1.6.x
--
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/62c7b456-08e3-4054-8b75-87cdf1c47451%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Djangaroo

unread,
Nov 11, 2015, 6:03:01 AM11/11/15
to Django users
Hi,

Thanks for the quick answer! No I'm not sure if it's compatible... I'm using Django 1.8.2 if that helps

I really don't know how I need to go about this. I can't find a way to connect my Database with the Django Project.

At the moment I'm trying to get this to work

Jani Tiainen

unread,
Nov 11, 2015, 6:06:59 AM11/11/15
to django...@googlegroups.com
As I said, django-firebird is compatible with Django 1.6.x and older releases. So it won't work with Django 1.8.2

You do have three options:

1) Fix or ask someone to fix django-firebird to support Django 1.8
2) Use Firebird database without Django ORM directly.
3) Use Django 1.6.x (not recommended since it's unsupported)
Reply all
Reply to author
Forward
0 new messages