UiL-OTS-labs / ppn-backend

Backend application for the adult participant administration system
https://experimenten-admin.lab.hum.uu.nl
Other
0 stars 0 forks source link
django python

Adult participant administration system BACKEND

Adult participant administration system, written in Django.

Introduction

This Django project is part of a two-application system used to keep track of adult participants, experiments and appointments for the ILS Labs.

This project represents the backend application, which is for system administrators only.

Requirements

Installation

For production/acceptation deployment, please see our Puppet script. (Hosted on our private GitLab server).

Development instructions:

Note: you probably also want to set your new super user as the main admin, otherwise the frontend probably won't like you. (Read: it will error without a Main Admin) (You can change this in the 'Admin' section in the menu).

Note 2: As the runserver command defaults to using localhost:8000 you will need to specify a different port for either the frontend or backend. If you're using the default settings, the backend should run at port 9000. You can change the port the application will listen on by specifying it as an argument.

For example: python manage.py runserver 9000 will set the port used to 9000

A note on dependencies

We use pip-tools to manage our dependencies (mostly to freeze the versions used). It's listed as a dependency, so it will be installed automatically.

requirements.in lists the actual dependency and their version constraints. To update requirements.txt just run pip-compile -U. Don't forget to test with the new versions!