defining
os.environ['DJANGO_SETTINGS_MODULE'] = 'django_app.settings'
before loading django