Installation

Library installation

There are a few different ways you can install django-business-logic:

  • Use pip: pip install -U django-business-logic
  • Download a zipfile from the releases page and install it.
  • Checkout the source: git clone git://github.com/dgk/django-business-logic.git and install it yourself by entering python setup.py install.

Server setup

Edit settings.py and add following apps to your INSTALLED_APPS

# settings.py
INSTALLED_APPS = (
    # ...
    'django.contrib.contenttypes',

    'ace_overlay', # optional, for comfortable python functions editing
    'adminsortable2',
    'nested_inline',
    'polymorphic',
    'rest_framework', # optional, provided browsable API for this library handy development
    'django_filters', # ^^ same

    'business_logic',
    # ...
)

Edit urls.py and include required urls

# urls.py
urlpatterns = (
  # ...
  url('^business-logic/', include('business_logic.urls')),
  url('^nested_admin/', include('nested_admin.urls')),
  # ...
)

Make migrations

python manage.py migrate

Collect static files

python manage.py collectstatic