You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.4 KiB
60 lines
1.4 KiB
import os, sys, django
|
|
|
|
sys.path.append("../")
|
|
os.environ['PG_PORT_5432_TCP_ADDR'] = '127.0.0.1'
|
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "lms.settings")
|
|
django.setup()
|
|
|
|
from journals.models import Action
|
|
|
|
if __name__ == '__main__':
|
|
|
|
Action.objects.update_or_create(
|
|
name='try',
|
|
text='попытка сдачи чего-либо',
|
|
)
|
|
|
|
Action.objects.update_or_create(
|
|
name='yes',
|
|
text='одобрение чего-либо',
|
|
)
|
|
|
|
Action.objects.update_or_create(
|
|
name='no',
|
|
text='отказ от чего-либо',
|
|
)
|
|
|
|
Action.objects.update_or_create(
|
|
name='favorite',
|
|
text='добавить в избранное',
|
|
)
|
|
|
|
Action.objects.update_or_create(
|
|
name='watch',
|
|
text='просмотр',
|
|
)
|
|
|
|
Action.objects.update_or_create(
|
|
name='start',
|
|
text='начало чего-либо',
|
|
)
|
|
|
|
Action.objects.update_or_create(
|
|
name='end',
|
|
text='окончание чего-либо',
|
|
)
|
|
|
|
Action.objects.update_or_create(
|
|
name='create',
|
|
text='создание чего-либо',
|
|
)
|
|
|
|
Action.objects.update_or_create(
|
|
name='delete',
|
|
text='удаление чего-либо',
|
|
)
|
|
|
|
Action.objects.update_or_create(
|
|
name='update',
|
|
text='изминение чего-либо',
|
|
) |