Installation
Warning
This page has been automatically generated as has not yet been reviewed by the authors of thredds-control-center!
To install the thredds-control-center
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 thredds-control-center
or, if you are using pipenv
, via:
pipenv install thredds-control-center
Or install it directly from the source code repository on Gitlab via:
pip install git+https://codebase.helmholtz.cloud/hcdc/thredds/thredds-control-center.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 thredds-control-center
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
tds_control
app to yourINSTALLED_APPS
in your projects urlconf (see ), add include
tds_control.urls
via::from django.urls import include, path urlpatterns += [ path("thredds-control-center/", include("tds_control.urls")), ]
Run
python manage.py migrate
to add models to your databaseConfigure the app to your needs (see Configuration options) (you can also have a look into the
testproject
folder in the source code repository for a possible configuration).
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-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.