Installation
Warning
This page has been automatically generated as has not yet been reviewed by the authors of dasf-broker-django!
To install the dasf-broker-django package for your Django
project, you need to follow two steps:
Installation from PyPi
The recommended way to install this package is via pip and PyPi via:
pip install dasf-broker-django
or, if you are using pipenv, via:
pipenv install dasf-broker-django
Or install it directly from the source code repository on Gitlab via:
pip install git+https://codebase.helmholtz.cloud/dasf/dasf-broker-django.git
The latter should however only be done if you want to access the development versions (see Installation for development).
Install the Django App for your project
To use the dasf-broker-django package in your Django project,
you need to add the app to your INSTALLED_APPS, configure your urls.py, run
the migration, add a login button in your templates. Here are the step-by-step
instructions:
Add the
dasf_brokerapp to yourINSTALLED_APPSin your projects urlconf (see
ROOT_URLCONF), add includedasf_broker.urlsvia::from django.urls import include, path urlpatterns += [ path("dasf-broker-django/", include("dasf_broker.urls")), ]
Run
python manage.py migrateto add models to your databaseConfigure the app to your needs (see Configuration options) (you can also have a look into the
testprojectfolder in the source code repository for a possible configuration).Please make sure that you have an
asgi.pyfile as in thetestprojectand set theASGI_APPLICATIONvariable in yoursettings.py. See https://channels.readthedocs.io/en/stable/installation.html
If you need a deployment-ready django setup for an app like this, please have a look at the following template: https://codebase.helmholtz.cloud/hcdc/software-templates/django-channels-docker-template
That’s it!
Installation for development
Please head over to our
contributing guide <contributing>{.interpreted-text role=”ref”} for
installation instruction for development.