Skip to main content

Firebird backend for Django web framework

Project description

https://img.shields.io/pypi/v/django-firebird.svg

Firebird SQL backend for django

Repo Note: The master branch is an in development version of django-firebird. This may be substantially different from the latest release of django-firebird

This version of django-firebird is working with fbd [1], therefore it will work only with firebird 2.x and later. The stable version corresponds with django 2.2 and live into stable/2.2.x branch. The current master branch of this repository is being developed under django 3.0.x. For previous Django stable version check the branch list of this repository. fbd is the official stable python-firebird driver, also it has support for python 3.

[1] http://pypi.python.org/pypi/fdb/

Requirements

Installation

Using pip

pip install django-firebird

From repository

git clone git://github.com/maxirobaina/django-firebird.git

cd django-firebird

sudo python setup.py install

Manual Installation

Instructions for Ubuntu/Debian I assume you have installed django from source with python setup.py install

cd /usr/local/lib/python3.8/dist-packages

sudo git clone git://github.com/maxirobaina/django-firebird.git

sudo ln -s django-firebird/firebird firebird

cd /usr/local/lib/python3.8/dist-packages/django/db/backends

sudo ln -s /usr/local/lib/python3.8/dist-packages/django-firebird/firebird

Configuration

Modify your setting.py

DATABASES = {
    'default': {
        'ENGINE' : 'firebird',
        'NAME' : '/var/lib/firebird/3.0/data/django_firebird.fdb', # Path to database or db alias
        'USER' : 'SYSDBA',           # Your db user
        'PASSWORD' : '*****',    # db user password
        'HOST' : '127.0.0.1',        # Your host machine
        'PORT' : '3050',             # If is empty, use default 3050
        #'OPTIONS' : {'charset':'ISO8859_1'}
    }
}

Known bugs and issues

  • Some database migrations doesn’t work by default. Sometimes is better make intermediate migrations for solve problems.

  • Some Query Expressions doesn’t work by default. We need to make some workaround, ie: Use Cast().

  • Combined duration expressions need more research. No all combination of expressions works.

Contributing

Code and issues is in GitHub:

https://github.com/maxirobaina/django-firebird

We also have a mailing list:

http://groups.google.com/group/django-firebird-dev

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-firebird-2.2.tar.gz (31.9 kB view details)

Uploaded Source

Built Distribution

django_firebird-2.2-py2.py3-none-any.whl (35.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django-firebird-2.2.tar.gz.

File metadata

  • Download URL: django-firebird-2.2.tar.gz
  • Upload date:
  • Size: 31.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.9

File hashes

Hashes for django-firebird-2.2.tar.gz
Algorithm Hash digest
SHA256 c8d4748255ac57e4151ecaf507343e4e39dc5d3fe48d5053d809d97d68d96633
MD5 8fa4fa583395a694fab7bc2d4502fb24
BLAKE2b-256 a17ba48dc6d5e622cd6c5881697b05525d8b954319f5784cf29cfb17c4fe5b19

See more details on using hashes here.

File details

Details for the file django_firebird-2.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_firebird-2.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 fe6e0a60c846ea6ec325fd5538fd5b732705f02edf7a94e7fd23f8cd5a4a6f82
MD5 c42dddb6a54e060ddb025fd79bbf6cb5
BLAKE2b-256 190db87803b9c6866d7bb50c15b54a92af5184e9277949266711ed0a076c028d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page