Installation

Requirements

The main requirement for STDWeb is STDPipe. Please refer to its documentation for installation of binary dependencies like SExtractor, HOTPANTS, and Astrometry.Net.

STDWeb also requires a running Redis instance for Celery task queue management.

Installing STDWeb

Clone the repository:

git clone https://github.com/karpov-sv/stdweb.git

Install Python dependencies (preferably in a dedicated environment):

cd stdweb
pip install -r requirements.txt

Installing Redis

Ubuntu/Debian:

sudo apt install redis-server

Conda:

conda install redis

Deployment

Running STDWeb requires three components running simultaneously:

1. Redis Server

Start Redis (if not running system-wide):

redis-server

2. Celery Worker

The data processing backend uses Celery:

python -m celery -A stdweb worker --loglevel=info

For development, use the auto-reloading helper script (requires watchdog):

pip install watchdog
./run_celery.sh

3. Django Web Server

Initialize the database and start the server:

python manage.py migrate
python manage.py runserver

Creating an Admin User

To create a superuser for the admin panel:

python manage.py createsuperuser

Production Deployment

For production deployment, follow the Django deployment documentation.