Skip to content

Python: virtual environment and other packages

luissian edited this page Apr 2, 2019 · 28 revisions

Create iSkyLIMS project inside Django (pay attention to the final dot!)

cd /srv/iSkyLIMS
source virtualenv/bin/activate
django-admin startproject iSkyLIMS .

(SECRET_KEY has been generated and it is stored in /srv/iSkyLIMS/iSkyLIMS/settings.py. Write down or create a file with your SECRET_KEY because you will need it later)

iSkyLIMS configuration files

To help you in the configuration process, a set of configuration files were defined, that can be found in /srv/iSkyLIMS/conf directory.

Copy configuration files ‘settings.py’ and ‘urls.py

cp /srv/iSkyLIMS/conf/settings.py /srv/iSkyLIMS/iSkyLIMS/
cp /srv/iSkyLIMS/conf/urls.py /srv/iSkyLIMS/iSkyLIMS/

Copy configuration files for wetlab

cp /srv/iSkyLIMS/conf/index_file /srv/iSkyLIMS/documents/wetlab/
cp /srv/iSkyLIMS/conf/wetlab_config.py /srv/iSkyLIMS/iSkyLIMS_wetlab/

Copy configuration file for drylab

cp /srv/iSkyLIMS/conf/drylab_config.py /srv/iSkyLIMS/iSkyLIMS_drylab/

Copy (and rename) configuration file ‘settings_zinnia.py

cp /srv/iSkyLIMS/conf/settings_zinnia.py /srv/iSkyLIMS/virtualenv/lib/python3.6/site-packages/zinnia/settings.py

Copy (and rename) configuration file ‘admin_zinnia_wymeditor.py

cp /srv/iSkyLIMS/conf/admin_zinnia_wymeditor.py /srv/iSkyLIMS/virtualenv/lib/python3.6/site-packages/zinnia_wymeditor/admin.py
Clone this wiki locally