Configuration
STDWeb uses environment variables for site-specific configuration. All settings should be placed in a .env file in the project root.
Environment Variables
Core Django Settings
Variable |
Description |
|---|---|
|
Django secret key (generate with |
|
Enable Django debug mode ( |
Path Settings
Variable |
Description |
|---|---|
|
Directory for user-accessible data files (file browser root) |
|
Directory for task working directories (uploads, results, caches) |
STDPipe Binary Paths
These are optional. If not specified, STDPipe will search standard paths.
Variable |
Description |
|---|---|
|
Temporary folder for processing |
|
Path to Astrometry.Net |
|
Path to Astrometry.Net index configuration |
|
Path to SExtractor executable |
|
Path to SCAMP executable |
|
Path to PSFEx executable |
|
Path to HOTPANTS executable |
|
Path to SWarp executable |
|
Path for Pan-STARRS download cache (if not set, uses task-local cache) |
External Services
Variable |
Description |
|---|---|
|
SkyPortal API token for transient submission |
Example Configuration
SECRET_KEY = 'your-django-secret-key-goes-here'
DEBUG = True
DATA_PATH = /opt/stdweb/data/
TASKS_PATH = /opt/stdweb/tasks/
# STDPipe settings
STDPIPE_HOTPANTS = /usr/local/bin/hotpants
STDPIPE_SOLVE_FIELD = /usr/local/astrometry/bin/solve-field
STDPIPE_SOLVE_FIELD_CONFIG = /usr/local/astrometry/etc/astrometry.cfg