$ git clone https://github.com/release-engineering/product-definition-center.git
For development purposes, install following deps:
Koji is not available on PyPI. You must install the koji package to your system via
$ sudo yum install koji
before creating a virtualenv.
After that, run
$ pip install virtualenvwrapper
and setup according to ‘Setup’ steps in /usr/bin/virtualenvwrapper.sh. Then do with
$ mkvirtualenv pdc --system-site-packages
to include koji into your pdc virtualenv.
run the following
$ workon pdc
$ pip install -r requirements/devel.txt
to active pdc virtualenv and install all the deps.
You can use the dist settings template by copying it to settings_local.py:
$ cp settings_local.py.dist settings_local.py
Feel free to customize your settings_local.py. Changes will be populated automatically. In local development environment, you may need to set “DEBUG = True” and comment out ” ALLOWED_HOSTS” setting, meanwhile uncomment ‘REST_FRAMEWORK’ section but keep ‘DEFAULT_PERMISSION_CLASSES’ item commented.
To run development server, run:
$ make run
For development you may find it useful to enable Django Development Toolbar.
Related settings is documented in devel settings section in settings_local.py.dist.