Setup a local development environment

Check out from GIT

If you plan to develop devilry, you should fork the devilry-django repo, changes to your own repo and request inclusion to the master repo using github pull requests.

If you are just trying out Devilry, use

$ git clone

If you are part of the Devilry team on GitHub, use

$ git clone

The master branch, which git checks out by default, is usually the latest semi-stable development version.

Install dependencies/requirements


We require postgresql to develop Devilry. You only have to have it installed, Devilry comes with Django management commands that help you create and work with an isolated development database.

Other dependencies than are not really required, but we recommend that you:

  • use Virtualenv to avoid installing anything globally, and to get a clean environment

Note that all instructions below assume you have and want to install Fabric and Virtualenv.


  1. Install XCode (from app store).

  2. Install command line tools for XCode (includes Git and Python):

    $ xcode-select --install
  3. Install virtualenvwrapper.

  4. Install postgresql and redis. We recommend you do this via Homebrew:

    $ brew install postgresql redis

Ubuntu Linux

$ sudo apt-get install build-essential python-dev python-virtualenv libncurses5-dev virtualenvwrapper libxslt1-dev libxml2 libxml2-dev zlib1g-dev libpq-dev

Setup the development virtualenv

Setup a Python 3.6 virtualenv (make sure you have Python 3.6 installed):

$ cd devilry-django
$ mkvirtualenv -p /usr/local/bin/python3 devilry-django
$ pip install -r requirements/development.txt


Your path to python3 may be something other than /usr/local/bin/python3.

Create a database

First, make sure you are in the devilry-django virtualenv:

$ workon devilry-django

You can create a fairly full featured demo database with:

$ ievv recreate_devdb

Run the Django development server

First, make sure you are in the devilry-django virtualenv:

$ workon devilry-django

Start the Django development server with:

$ ievv devrun

Go to http://localhost:8000/ and log in as a superuser using:

password: test

Note: All users have password==test, and you can see all users in the superadmin interface.