Getting Started - gtaylor/django-eve-db GitHub Wiki

Getting Started

Dependencies

django-eve-db depends on the following:

  • Python 2.6+ (but not 3.x)
  • Django 1.4

Choosing an RDBMS

django-eve-db is seeing the most time developed and deployed under Postgres. While in theory it shouldn't matter what you run it on, there are subtle differences that can get in the way. Currently, we can only verify with certainty that django-eve-db runs as intended on Postgres and SQLite. MySQL has a limitation or two that will raise some hurdles during initial installation (index name length limitations is the big one).

If you're able to run Postgres, we highly recommend it. SQLite will work in a pinch, and MySQL can be made to work with some effort.

Installing

Install django-eve-db via pip:

  pip install --upgrade git+http://github.com/gtaylor/django-eve-db.git

Next, add eve_db to your INSTALLED_APPS like so:

INSTALLED_APPS = (
    ...

    'eve_db',
)

You will then want to run your project's manage.py script as such:

  python manage.py syncdb

This will create some tables if you're not using south. If you are using south, you'll also want to run this:

  python manage.py migrate

Downloading the data dump

You can simply pull our latest supported SQLite data dump from our downloads page: http://files.zweizeichen.org/dump.zip

You'll want to copy and extract this to the same location as your manage.py script.

Importing the Data Set

You should now have an extracted *.db3 file. The next thing to do is import the data from the CCP dump. Run the following command via manage.py:

python manage.py eve_import_ccp_dump rubicon112.db

NOTE: This will take a good while. The good news is, you should only have to do it once.

If you want to selectively import tables, see the --help for a few different options:

python manage.py eve_import_ccp_dump --help

Profit

You should be ready to go now. Documentation is extremely sparse right now, but referring to the automatically generated docs via Django's admin interface should point you in something resembling the right direction.

⚠️ **GitHub.com Fallback** ⚠️