>>> import re
>>>
>>> re.match('Hello', 'Hello world')
<re.Match object; span=(0, 5), match='Hello'>
>>>
>>> import re
>>>
>>> re.match('hello|world', 'hello')
<re.Match object; span=(0, 5), match='hello'>
>>>
>>> import re
>>>
>>> re.search('^Hello', 'Hello world!')
<re.Match object; span=(0, 5), match='Hello'>
>>>
>>> re.search('world!', 'Hello world!')
<re.Match object; span=(6, 12), match='world!'>
>>>
In [16]: RegionDaily.objects.filter(nm__iregex=r'stage').values()
Out[16]: <QuerySet [{'id': 133081879, 'cd': 31160, 'nm': 'growth.stage.kiwifruit', 'tm': datetime.date(2020, 10, 23), 'value': 0.0}, {'id': 133081880, 'cd': 31170, 'nm': 'growth.stage.kiwifruit', 'tm': datetime.date(2020, 10, 23), 'value': 0.0}, {'id': 133081881, 'cd': 31180, 'nm': 'growth.stage.kiwifruit', 'tm': datetime.date(2020, 10, 23), 'value': 0.0}, {'id': 133081882, 'cd': 31191, 'nm': 'growth.stage.kiwifruit', 'tm': datetime.date(2020, 10, 23), 'value': 0.0}, {'id': 133081883, 'cd': 31200, 'nm': 'growth.stage.kiwifruit', 'tm': datetime.date(2020, 10, 23), 'value': 0.0}, {'id': 133081884, 'cd': 31210, 'nm': 'growth.stage.kiwifruit', 'tm': datetime.date(2020, 10, 23), 'value': 0.0}, {'id': 237292816, 'cd': 37030, 'nm': 'growth.stage.pear.early', 'tm': datetime.date(2020, 6, 25), 'value': 7.0}, {'id': 237292817, 'cd': 37040, 'nm': 'growth.stage.pear.early', 'tm': datetime.date(2020, 6, 25), 'value': 7.0}, {'id': 237292818, 'cd': 37050, 'nm': 'growth.stage.pear.early', 'tm': datetime.date(2020, 6, 25), 'value': 7.0}, {'id': 237292819, 'cd': 37060, 'nm': 'growth.stage.pear.early', 'tm': datetime.date(2020, 6, 25), 'value': 6.0}, {'id': 237292820, 'cd': 37070, 'nm': 'growth.stage.pear.early', 'tm': datetime.date(2020, 6, 25), 'value': 7.0}, {'id': 237292821, 'cd': 37080, 'nm': 'growth.stage.pear.early', 'tm': datetime.date(2020, 6, 25), 'value': 7.0}, {'id': 237292822, 'cd': 37090, 'nm': 'growth.stage.pear.early', 'tm': datetime.date(2020, 6, 25), 'value': 7.0}, {'id': 237292823, 'cd': 37100, 'nm': 'growth.stage.pear.early', 'tm': datetime.date(2020, 6, 25), 'value': 7.0}, {'id': 237292824, 'cd': 37310, 'nm': 'growth.stage.pear.early', 'tm': datetime.date(2020, 6, 25), 'value': 7.0}, {'id': 237292825, 'cd': 37320, 'nm': 'growth.stage.pear.early', 'tm': datetime.date(2020, 6, 25), 'value': 7.0}, {'id': 237292826, 'cd': 37330, 'nm': 'growth.stage.pear.early', 'tm': datetime.date(2020, 6, 25), 'value': 7.0}, {'id': 237292827, 'cd': 37340, 'nm': 'growth.stage.pear.early', 'tm': datetime.date(2020, 6, 25), 'value': 7.0}, {'id': 237292828, 'cd': 37350, 'nm': 'growth.stage.pear.early', 'tm': datetime.date(2020, 6, 25), 'value': 7.0}, {'id': 237292829, 'cd': 37360, 'nm': 'growth.stage.pear.early', 'tm': datetime.date(2020, 6, 25), 'value': 7.0}, '...(remaining elements truncated)...']>
import re
from 모델이소속된앱이름.models import 모델이름
모델이름.objects.filter(필드이름__iregex=r'(일치되어야하는문자열)$').all()