Re: Connecting to FirebirdSQL-Database as a second DB

2015-11-11 Thread Jani Tiainen

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

On 11.11.2015 11:39, Djangaroo wrote:

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:

|
importos,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.

--
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+unsubscr...@googlegroups.com 
.
To post to this group, send email to django-users@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.


--
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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/56430FE2.7090600%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Connecting to FirebirdSQL-Database as a second DB

2015-11-11 Thread Djangaroo
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

On Wednesday, November 11, 2015 at 10:53:31 AM UTC+1, Jani Tiainen wrote:
>
> 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
>
> On 11.11.2015 11:39, Djangaroo wrote:
>
> 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.
>
> -- 
> 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.
>
>
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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/ea066a7d-a517-46e9-9e23-7faae86781a6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Connecting to FirebirdSQL-Database as a second DB

2015-11-11 Thread Jani Tiainen
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)



On 11.11.2015 13:03, Djangaroo wrote:

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


On Wednesday, November 11, 2015 at 10:53:31 AM UTC+1, Jani Tiainen wrote:

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

On 11.11.2015 11:39, Djangaroo wrote:

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:

|
importos,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.

-- 
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
.


--
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+unsubscr...@googlegroups.com 
.
To post to this group, send email to django-users@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/ea066a7d-a517-46e9-9e23-7faae86781a6%40googlegroups.com 
.

For more options, visit https://groups.google.com/d/optout.


--
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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/56432133.3050803%40gmail.com.
For more options, visit https://groups.google.com/d/optout.