Skip to main content

NuoDB Extension for Django

Project description

# NuoDB - Django

[![Build Status](https://travis-ci.org/nuodb/nuodb-django.png?branch=master)](https://travis-ci.org/nuodb/nuodb-django)

This is the official Django adapter for [NuoDB](http://www.nuodb.com). It leverages the [NuoDB Python Driver](https://github.com/nuodb/nuodb-python).

### Requirements

If you haven't already, [Download and Install NuoDB](http://nuodb.com/download-nuodb/)

In the settings.py file in your project, set the `USE_TZ` flag to False. This is done because the timezone is detected when the connection is created.

Set the `ENGINE` field in the `DATABASES/default` dictionary in settings.py to the django_pynuodb folder (if you installed using pip this is just `django_pynuodb`)

You can optionally set the schema by adding a `SCHEMA` field in the `DATABASES/default` dictionary in settings.py, if the schema is not specified it will default to `USER`

### Setup

git clone and install it

```
git clone https://github.com/nuodb/nuodb-django.git
cd nuodb-django
python setup.py install
```

or install with pip

```
sudo pip install django_pynuodb
```

### Sample

Here is a sample database dictionary

```
DATABASES = {
'default': {
'ENGINE': 'django_pynuodb',
'NAME': 'test',
'DOMAIN_USER': 'domain', # domain credentials
'DOMAIN_PASSWORD': 'bird',
'DBA_USER': 'dba', # database credentials
'DBA_PASSWORD': 'goalie',
'SCHEMA': '', # optional
'HOST': 'localhost',
'PORT': '48004',
}
}
```

Set the `USE_TZ` flag to `False`

```
USE_TZ = False
```

### License

[NuoDB License](https://github.com/nuodb/nuodb-django/blob/master/LICENSE)

Project details


Release history Release notifications

History Node

2.0.4

History Node

2.0.3

History Node

2.0

This version
History Node

0.9

History Node

0.8

History Node

0.7

History Node

0.6

History Node

0.5

History Node

0.4

History Node

0.3

History Node

0.2

History Node

0.1

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
django_pynuodb-0.9.tar.gz (11.7 kB) Copy SHA256 hash SHA256 Source None Aug 14, 2013

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page