1👍
I’ve added os.environ.setdefault("DJANGO_SETTINGS_MODULE", "app.settings")
to the initialize
function and I’m no longer getting this error.
Full build.py listing:
from pybuilder.core import init, use_plugin
import os
use_plugin("python.core")
use_plugin("python.unittest")
use_plugin("python.django")
default_task = "publish"
@init
def initialize():
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "myapp.settings")
Source:stackexchange.com