Nextdoor / ndscheduler

A flexible python library for building your own cron-like system, with REST APIs and a Web UI.
BSD 2-Clause "Simplified" License
1.08k stars 202 forks source link

Unable to run manual settings rather than default settings #97

Open pratikmore96 opened 3 years ago

pratikmore96 commented 3 years ago

Hi, can someone tell me how to pass the ENV variable "NDSCHEDULER_SETTINGS_MODULE" or how I can run manual settings rather than the default settings?

GabrieleCalarota commented 3 years ago

As stated in the doc:

NDSCHEDULER_SETTINGS_MODULE=simple_scheduler.settings \
PYTHONPATH=.:$(PYTHONPATH) \
        python simple_scheduler/scheduler.py

Where simple_scheduler.settings is the path to your custom settings