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.
19 lines
651 B
19 lines
651 B
import os, sys, django
|
|
|
|
sys.path.append("../")
|
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "lms.settings")
|
|
django.setup()
|
|
|
|
|
|
from django.contrib.auth.models import Group
|
|
|
|
if __name__ == '__main__':
|
|
Group.objects.get_or_create(name='admin')
|
|
Group.objects.get_or_create(name='students')
|
|
Group.objects.get_or_create(name='teachers')
|
|
Group.objects.get_or_create(name='managers')
|
|
Group.objects.get_or_create(name='lead_managers')
|
|
Group.objects.get_or_create(name='curators')
|
|
Group.objects.get_or_create(name='partners')
|
|
Group.objects.get_or_create(name='supports')
|
|
Group.objects.get_or_create(name='project_managers') |