Sign inSign up

mazurov/lhcbpr2be

By mazurov

•Updated about 9 years ago

Django rest API for LHCb2PR

Image
0

1.0K

mazurov/lhcbpr2be repository overview

⁠LHCbPR service

⁠Installation

  1. git clone ssh://[email protected]:7999/lhcb-core/LHCbPR2BE
  2. cd LHCbPR2BE
  3. cp site/settings/private.default.py site/settings/private.py
  4. Setup and activate virtual environment (see below)
  5. Run dev server: ./scripts/runserver (at local server)
⁠Virtual environment

Site is tested only with python2, so you need to setup only python virtual environment

virtualenv venv # at LHCbPR2BE folder. Use -p option if you need to select python executable
source venv/bin/activate

⁠Configuration

./scripts/runserver <YOURENV> if it exists the file ./envs/YOURENV.env then the configuration is loaded from this file.

** Default configuration **

DJANGO_STATIC_URL=/api/static/

DJANGO_HTTP_PORT=8080
DJANGO_LOG_LEVEL=INFO

DB_ENGINE=django.db.backends.sqlite3
DB_HOST=
DB_USER=
DB_PASSWORD=
DB_DATABASE=lhcbprdev
DB_PORT=

DATA_ROOT=data
  • `DB_*`` parameters corresponds to the standart DJANGO database configuraiton
  • DATA_ROOT points to the folder with jobs output files.

⁠Import zip files

Zip files contains handlers' results⁠. You can import them by using the followinf command:

./site/manage.py lhcbpr_import /path/to/directory/with/zips

⁠Administration site

You can update base records at the administration area. By default the path is /api/admin. There you can add applications, options and custumize executables.

For test purposes the default username is "lhcbpr" and password is "backend".

Tag summary

Content type

Image

Digest

Size

296.1 MB

Last updated

about 9 years ago

docker pull mazurov/lhcbpr2be